You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: