Skip to content

Retrieving with balanceOf on ERC20 contract has CALL_EXCEPTION meanwhile transferTo works with no error #3706

Answered by ricmoo
emclab asked this question in Q&A
Discussion options

You must be logged in to vote

If the code is 0x, it means your code isn’t deployed. If you are deploying it just before calling your function, you need to wait for the deployment to complete, for example in a test case.

I’ve also seen similar situation where the artifact files were not updated correctly.

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by emclab
Comment options

You must be logged in to vote
2 replies
@ricmoo
Comment options

@emclab
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants