Skip to content

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

@victorchan88

Description

@victorchan88

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions