I am writing a Hardhat task. Hardhat ethers provides
ethers.getSigners()which returns me the addresses derived from the mnemonics saved in
However, I want to use an account address, of which I have the private key only and would like to import that account, use it as signers for the contract calls and get the address.
How can I achieve that?
In the task, currently
signersis used as signer. How could I switch to