Skip to main content
added 9 characters in body
Source Link
goodvibration
  • 26.2k
  • 5
  • 49
  • 89

With contract = new web3.eth.Contract(abi, addr),

The one and only reason for contract.methods.decimals().call() to throw:

Error: Returned values aren't valid, did it run Out of Gas?

Is if theno contract deployed at addr does not implementwhich implements function decimals() is deployed at addr.

With contract = new web3.eth.Contract(abi, addr),

The one and only reason for contract.methods.decimals().call() to throw:

Error: Returned values aren't valid, did it run Out of Gas?

Is if the contract deployed at addr does not implement function decimals().

With contract = new web3.eth.Contract(abi, addr),

The one and only reason for contract.methods.decimals().call() to throw:

Error: Returned values aren't valid, did it run Out of Gas?

Is if no contract which implements function decimals() is deployed at addr.

Source Link
goodvibration
  • 26.2k
  • 5
  • 49
  • 89

With contract = new web3.eth.Contract(abi, addr),

The one and only reason for contract.methods.decimals().call() to throw:

Error: Returned values aren't valid, did it run Out of Gas?

Is if the contract deployed at addr does not implement function decimals().