Using own account on forking together with other signers #3562
Answered
by
fvictorio
GorniyGor
asked this question in
Troubleshooting
-
I use forking, I need to be able signMessage (not only txn) but I need couple random accs in test as well. My attempts:
Is there a way to solve my problem? (use hardhat + ethers) |
Beta Was this translation helpful? Give feedback.
Answered by
fvictorio
Jan 11, 2023
Replies: 1 comment 4 replies
-
I think the second option is the way to go. The way to use the right provider is this: const wallet = new ethers.Wallet(privateKey, ethers.provider) |
Beta Was this translation helpful? Give feedback.
4 replies
Answer selected by
GorniyGor
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I think the second option is the way to go. The way to use the right provider is this: