-
I am using "hardhat": "^2.14.0", & "ethers": "^5.7.2" (6.+ breaks things so downgraded to 5.3.4 then up to 5.7.2 while trying to solve this issue)
'abi' comes from
it shows i've seen this error come up for others and it's usually caused by passing in the abi in the wrong place. In my case, i have it as the second argument, abi console.logs an array as it should i have tried refactoring and even directly passing the abi to a variable to no avail, any direction would be appreciated |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 9 replies
-
Update: also tried version 5.5.4 to match the version hardhat is using, no change |
Beta Was this translation helpful? Give feedback.
-
This is (as you said) almost always caused by passing in the wrong type of ABI. Can you do a |
Beta Was this translation helpful? Give feedback.
This is (as you said) almost always caused by passing in the wrong type of ABI. Can you do a
console.log(Array.isArray(abi), abi)
? Usually ABI fragments spit out by tools include an objects whose keys are the name of the contract and whose values are the actual ABI.