Skip to content

Commit 04180cc

Browse files
committed
update multisig tasks
1 parent 7816082 commit 04180cc

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

tasks/multisig.ts

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,23 +79,28 @@ task("multisig:check-txs", "Check multiple multisig txs")
7979
});
8080

8181
task("multisig:revoke-sig", "Revoke multisig tx confirmation")
82-
.addParam("id", "Multisig transaction to revoke confirmation from", undefined, types.string)
82+
.addPositionalParam(
83+
"id",
84+
"Multisig transaction to revoke confirmation from",
85+
undefined,
86+
types.string
87+
)
8388
.addOptionalParam("signer", "Signer name: 'signer' or 'deployer'", "deployer")
8489
.setAction(async ({ id, signer }, hre) => {
8590
const signerAcc = (await hre.getNamedAccounts())[signer];
8691
await multisigRevokeConfirmation(hre, id, signerAcc);
8792
});
8893

8994
task("multisig:add-owner", "Add or remove multisig owner")
90-
.addParam("address", "Owner address to add or remove", undefined, types.string)
95+
.addPositionalParam("address", "Owner address to add or remove", undefined, types.string)
9196
.addOptionalParam("signer", "Signer name: 'signer' or 'deployer'", "deployer")
9297
.setAction(async ({ address, signer }, hre) => {
9398
const signerAcc = (await hre.getNamedAccounts())[signer];
9499
await multisigAddOwner(hre, address, signerAcc);
95100
});
96101

97102
task("multisig:remove-owner", "Add or remove multisig owner")
98-
.addParam("address", "Owner address to add or remove", undefined, types.string)
103+
.addPositionalParam("address", "Owner address to add or remove", undefined, types.string)
99104
.addOptionalParam("signer", "Signer name: 'signer' or 'deployer'", "deployer")
100105
.setAction(async ({ address, signer }, hre) => {
101106
const signerAcc = (await hre.getNamedAccounts())[signer];

0 commit comments

Comments
 (0)