Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

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

Open
victorchan88 opened this issue Feb 17, 2022 · 0 comments
Open

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

victorchan88 opened this issue Feb 17, 2022 · 0 comments

Comments

@victorchan88
Copy link

let daiTokenBalance = await daiToken.methods.balanceOf(this.state.account).call()
let dappTokenBalance = await dappToken.methods.balanceOf(this.state.account).call()
let stakingBalance = await tokenFarm.methods.stakingBalance(this.state.account).call()

It appears like these 3 lines cause the error. I have looked it up but I can't seem to find a solution that fixes the error. I have the exact same code as the tutorial and I am using ganache with metamask.
Capture

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant