src/index.js
function invalidResponseError(result, host) {
  const message = !!result && !!result.error && !!result.error.message ? `[ethjs-provider-http] ${result.error.message}` : `[ethjs-provider-http] Invalid JSON RPC response from host provider ${host}: ${JSON.stringify(result, null, 2)}`;
  return new Error(message);
}
function invalidResponseError(result, host) {
  const message = !!result && !!result.error && !!result.error.message ? `[ethjs-provider-http] ${result.error.message}` : `[ethjs-provider-http] Invalid JSON RPC response from host provider ${host}: ${JSON.stringify(result, null, 2)}`;
  return new Error(message);
}
function invalidResponseError ( result , host ) { const message = ! ! result && ! ! result . error && ! ! result . error . message ? ` ${ result . error . message } ` : ` ${ host } ${ JSON . stringify ( result , null , 2 ) } ` ; return new Error ( message ) ; }
InvalidResponseError helper for invalid errors.
InvalidResponseError helper for invalid errors .