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:
Diana Carvalho
2025-02-24 15:56:59 +00:00
parent 90cf194869
commit 02a9da183e
9 changed files with 178 additions and 29 deletions

View File

@@ -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()