Can't get balanceOf with deployed ERC20

Hello Everyone!
I deployed an ERC20 contract and but I can't access balance with ERC20instance.balanceOf( ).
To get an instance of the ERC20 contract I used:
ERC20instance = new ethers.Contract(address, abi, signer)
I can see all the ABI methods in the console but I can't use balanceOf( )

Thanks!

Hello, Matthias!

  1. Please show your code and settings which you use.
    Maybe answer: Did you use correct network for your contract?

Thank you very much for your answer!
I re-checked ethers.js documentation and it was indeed a network issue, so I managed to fix it.
Have a good day!

1 Like