mirror of
https://github.com/Instadapp/dsa-connectors.git
synced 2024-07-29 22:37:00 +00:00
16 lines
338 B
JavaScript
16 lines
338 B
JavaScript
|
const { ethers, network } = require("hardhat");
|
||
|
|
||
|
module.exports = async (accounts) => {
|
||
|
const signers = [];
|
||
|
for (const account of accounts) {
|
||
|
await network.provider.request({
|
||
|
method: "hardhat_impersonateAccount",
|
||
|
params: [account],
|
||
|
});
|
||
|
|
||
|
signers.push(await ethers.getSigner(account));
|
||
|
}
|
||
|
|
||
|
return signers;
|
||
|
};
|