Replies: 2 comments
-
Maybe this is an impossible use case as contract-to-contract only occurs within a contract context. In that case just let me know ;) |
Beta Was this translation helpful? Give feedback.
0 replies
-
The
Yeah I think it's possible but before that you need to use hardhat_impersonateaccount first. Then (Moving to discussions since this is not an ethers.js issue). |
Beta Was this translation helpful? Give feedback.
0 replies
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.
-
Suggestion
Hi everyone,
I am writing tests for my contracts and I need to call .mint() as a contract (not EOA). I tried :
After running
npx hardhat test
I get this error :InvalidInputError: unknown account 0x5fbdb2315678afecb367f032d93f642f64180aa3
I assume the last line including toke.connect(contractSigner) where the error is from.
Any idea how to call a contract as a "contract signer" the good way ?
Thanks a lot
Beta Was this translation helpful? Give feedback.
All reactions