Skip to content

Commit

Permalink
Merge pull request #167 from SocketDotTech/transmitter-role
Browse files Browse the repository at this point in the history
transmitter same chain role
  • Loading branch information
arthcp authored May 1, 2023
2 parents cef2a33 + 2823a88 commit 3d2c143
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 3d2c143

Please sign in to comment.