DEV Community

Discussion on: Building an Aavegotchi DApp using React + Web3

Collapse
 
sunnydev profile image
SunnyDev624 • Edited

I have this error, after calling getCollateralInfo method. Any directions? Thanks.
dev-to-uploads.s3.amazonaws.com/up...

Collapse
 
jianshiung_yang_f1dfc206 profile image
Jian-Shiung Yang

I guess you have to switch to matic mainnet chain.

Collapse
 
ccoyotedev profile image
Caleb Coyote

Sorry for the late reply. Have you imported in the abi correctly?

It should be an array of objects like so:

[
  {
    "inputs": [
      { "internalType": "uint256", "name": "_tokenId", "type": "uint256" }
    ],
    "name": "aavegotchiClaimTime",
   ...

Enter fullscreen mode Exit fullscreen mode