Replies: 1 comment 1 reply
-
I see two possible cases for response data to be "0x":
To confirm if contract exists you can do: const code = await hre.ethers.provider.getCode(token.address)
console.log(code) // if this is 0x means no contract code is present Lmk if the problem persists! |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm using hardhat and ethers 5.6.9. I have a contract with the
supportsInterface
function.Test
The test fails with this error
The typechain type generated for that function is
The actual contract function:
Unless I'm reading this wrong, the data seems to be truncated ("0x"). I've tried using the utils in the
ethers/lib/utils
module to convert to hex with no success. What am I missing?Beta Was this translation helpful? Give feedback.
All reactions