Skip to content

Commit

Permalink
feat: transmitter same chain role
Browse files Browse the repository at this point in the history
  • Loading branch information
arthcp committed Apr 30, 2023
1 parent cef2a33 commit 2823a88
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion scripts/deploy/checkRoles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -406,6 +406,12 @@ export const checkAndUpdateRoles = async (params: checkAndUpdateRolesObj) => {
];

if (!requiredChainRoles?.length) return;
if (
contractName == CORE_CONTRACTS.TransmitManager &&
filterRoles.includes(ROLES.TRANSMITTER_ROLE)
) {
siblingSlugs.push(chainId);
}
await Promise.all(
siblingSlugs.map(async (siblingSlug) => {
if (
Expand Down Expand Up @@ -554,7 +560,16 @@ const main = async () => {
// // Grant roles to transmitterAddress on TransmitManager
await checkAndUpdateRoles({
userAddress: transmitterAddress,
filterRoles: [ROLES.GAS_LIMIT_UPDATER_ROLE, ROLES.TRANSMITTER_ROLE],
filterRoles: [ROLES.TRANSMITTER_ROLE],
filterContracts: [CORE_CONTRACTS.TransmitManager],
filterChains,
sendTransaction,
newRoleStatus,
});

await checkAndUpdateRoles({
userAddress: transmitterAddress,
filterRoles: [ROLES.GAS_LIMIT_UPDATER_ROLE],
filterContracts: [CORE_CONTRACTS.TransmitManager],
filterChains,
sendTransaction,
Expand Down

0 comments on commit 2823a88

Please sign in to comment.