.connect() won't recognize signers from .getSigners() #2708
Unanswered
0xGenghisGoose
asked this question in
Q&A
Replies: 1 comment 2 replies
-
It looks ok to me, just at a glance. What is the value of |
Beta Was this translation helpful? Give feedback.
2 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.
-
I have been trying to resolve this for about 3 hours now and for the life of me I can't figure out why it's doing this. Just writing some simple tests for a simple prediction market dapp I put together today, and though I've followed the documentation on testing (with ethers + hardhat) and have written multiple tests in this format before, it doesn't seem to want to let me do it this time.
Relevant code from test:
When I pass the SignerWithAddress (from getSigners) object to the connect function like above, I receive this error:
Error: invalid address or ENS name (argument="name", value="<SignerWithAddress my-address-here>", code=INVALID_ARGUMENT, version=contracts/5.5.0)
When I dot into the address (addy1.address) I receive this error:
Error: VoidSigner cannot sign transactions (operation="signTransaction", code=UNSUPPORTED_OPERATION, version=abstract-signer/5.5.0)
This is all just local, haven't tried to deploy on a testnet yet. Am I doing something blatantly wrong here that I've just been getting lucky with in the past? Can't seem to find anyone that has had similar issues either when looking around.
Appreciate any help at all here, this has been driving me crazy. Thank you!
Beta Was this translation helpful? Give feedback.
All reactions