Skip to content

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

Closed
@yazibshah

Description

@yazibshah

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.

Metadata

Metadata

Labels

status:needs-more-infoThere's not enough information to start working on this issue

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions