From 2823a8840cc7e8ab25913b0f03bd7ad4abcc2c42 Mon Sep 17 00:00:00 2001 From: arthcp Date: Mon, 1 May 2023 03:31:37 +0530 Subject: [PATCH] feat: transmitter same chain role --- scripts/deploy/checkRoles.ts | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/scripts/deploy/checkRoles.ts b/scripts/deploy/checkRoles.ts index 6c00f534..fdb61b2d 100644 --- a/scripts/deploy/checkRoles.ts +++ b/scripts/deploy/checkRoles.ts @@ -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 ( @@ -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,