NomicFoundation / hardhat

Hardhat is a development environment to compile, deploy, test, and debug your Ethereum software.
https://hardhat.org
Other
7k stars 1.35k forks source link

Signers not working in Ignitioin/modules/abc.js files #5462

Open yazibshah opened 5 days ago

yazibshah commented 5 days ago

Describe the feature

const { buildModule } = require("@nomicfoundation/hardhat-ignition/modules"); const {ethers}=require("hardhat")

const multiSigWallet= buildModule("MultiSigWallet", async(m) => { // let owner1; // let owner2; // let owner3; let owners; // [owner1, owner2, owner3]=await ethers.getSigners() owners=["0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266","0x70997970C51812dc3A010C7d01b50e0d17dc79C8","0x3C44CdDdB6a900fa2b585dd299e03d12FA4293BC"] const multiSig = m.contract("MultiSig",[owners,2]); console.log(multiSig.contractName) return { multiSig }; });

module.exports = multiSigWallet;

i have tried many with different ways but signers not working in sight buildModuler aslo callback func don't accept async javascript.

please how can use signers in this callback and why I can't use async javascrpt.

Search terms

i have tried many with different ways but signers not working in sight buildModuler aslo callback func don't accept async javascript. please how can use signers in this callback and why I can't use async javascrpt.