UNPKG

@cryptovarna/tronbox

Version:

TronBox - Simple development framework for Tron

1 lines 670 B
"use strict";var inherits=require("util").inherits;var TruffleError=require("@truffle/error");var NOT_CONNECTED_MESSAGE="Invalid JSON RPC response: \"\"";function ProviderError(message){if(message===NOT_CONNECTED_MESSAGE){message="Could not connect to your Ethereum client. "+"Please check that your Ethereum client:\n"+" - is running\n"+" - is accepting RPC connections (i.e., \"--rpc\" option is used in geth)\n"+" - is accessible over the network\n"+" - is properly configured in your tronbox configuration file (tronbox.js)\n"}ProviderError.super_.call(this,message);this.message=message}inherits(ProviderError,TruffleError);module.exports=ProviderError;