web3.js icon indicating copy to clipboard operation
web3.js copied to clipboard

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

Open VictorPulzz opened this issue 4 years ago • 1 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

Current Behavior

Hello guys please help me, This my code: image This code work correctly when I use test network in metamask, but when I switch to other, I got this issue: image

Expected Behavior

Not got error :D

Steps to Reproduce

In here contract: https://rinkeby.etherscan.io/address/0x619b945d410841597bcca76dec750653e3ccd10e

const contract = new web3.eth.Contract(abi, contractToken, {
  from: publicAddress,
});
Web3.utils.fromWei(await contract.methods.balanceOf(publicAddress).call()```

### Web3.js Version

1.6.0

### Environment

- Operating System: Windows 10 x64 
- Browser: Chrome
- Node.js Version: 14.16.0
- NPM Version: 6.14.11


### Anything Else?

_No response_

VictorPulzz avatar Dec 17 '21 15:12 VictorPulzz

Hi @VictorPulzz , how did you manage to fix your issue ?

JulienRst avatar Sep 18 '23 10:09 JulienRst