Skip to content

Commit 2bdbea4

Browse files
committed
PR feedback
1 parent 5ebaaa4 commit 2bdbea4

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

scripts/grant-executor-role.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import * as hre from 'hardhat';
2-
import { Contract, ContractFactory } from 'ethers';
2+
import { Contract, ContractFactory, ContractFunction, Transaction } from 'ethers';
33
import promptSync from 'prompt-sync';
44

55
import { EnvironmentInfo, loadEnvironmentInfo } from './environment';
@@ -37,7 +37,8 @@ async function grantExecutorRole(): Promise<EnvironmentInfo> {
3737
// Only grant the role if the wallet does not already have access to this to this role.
3838
const isExecutor = await multiCallDeploy.hasRole(executorRole, newAddress.trim());
3939
if (!isExecutor) {
40-
await multiCallDeploy.grantExecutorRole(newAddress.trim());
40+
const tx = await multiCallDeploy.grantExecutorRole(newAddress.trim());
41+
await tx.wait();
4142
console.log(`[${network}] Executor role granted to ${newAddress}`);
4243
} else {
4344
console.log(`[${network}] ${newAddress} already has the executor role`);

0 commit comments

Comments
 (0)