From 69850642365251e16b9f23b87d6caf187036b3ee Mon Sep 17 00:00:00 2001 From: Nam Chu Hoai Date: Mon, 20 Nov 2023 23:16:41 +0300 Subject: [PATCH] Remove ISM requirement for warp route deploys (#2936) ### Description Warp Deploys should not require the specification of an ISM --- typescript/cli/src/deploy/warp.ts | 5 +---- typescript/sdk/src/deploy/HyperlaneDeployer.ts | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/typescript/cli/src/deploy/warp.ts b/typescript/cli/src/deploy/warp.ts index 215c2903bc..317df98c06 100644 --- a/typescript/cli/src/deploy/warp.ts +++ b/typescript/cli/src/deploy/warp.ts @@ -162,10 +162,7 @@ async function runBuildConfigStep({ } // Request input for any address fields that are missing - const requiredRouterFields: Array = [ - 'mailbox', - 'interchainSecurityModule', - ]; + const requiredRouterFields: Array = ['mailbox']; let hasShownInfo = false; for (const [chain, token] of Object.entries(configMap)) { for (const field of requiredRouterFields) { diff --git a/typescript/sdk/src/deploy/HyperlaneDeployer.ts b/typescript/sdk/src/deploy/HyperlaneDeployer.ts index 6fa2f32d0d..fb3cc16e7f 100644 --- a/typescript/sdk/src/deploy/HyperlaneDeployer.ts +++ b/typescript/sdk/src/deploy/HyperlaneDeployer.ts @@ -229,7 +229,7 @@ export abstract class HyperlaneDeployer< chain, setIsm(contract, targetIsm), ); - if (targetIsm !== (await getIsm(contract))) { + if (!eqAddress(targetIsm, await getIsm(contract))) { throw new Error(`Set ISM failed on ${chain}`); } });