feat: Deploy executors and set them in router
--- don't change below this line --- ENG-4101 Took 59 minutes Took 10 seconds
This commit is contained in:
@@ -31,13 +31,13 @@ async function main() {
|
||||
const addresses = rolesDict[roleName];
|
||||
if (addresses && addresses.length > 0) {
|
||||
console.log(`Granting ${roleName} to the following addresses:`, addresses);
|
||||
await router.batchGrantRole(roleHash, addresses);
|
||||
const tx = await router.batchGrantRole(roleHash, addresses);
|
||||
await tx.wait(); // Wait for the transaction to be mined
|
||||
console.log(`Role ${roleName} granted at transaction: ${tx.hash}`);
|
||||
} else {
|
||||
console.log(`No addresses found for role ${roleName}`);
|
||||
}
|
||||
}
|
||||
|
||||
console.log("All roles have been set successfully.");
|
||||
}
|
||||
|
||||
main()
|
||||
|
||||
Reference in New Issue
Block a user