Skip to content

Commit

Permalink
Remove ISM requirement for warp route deploys (#2936)
Browse files Browse the repository at this point in the history
### Description

Warp Deploys should not require the specification of an ISM
  • Loading branch information
nambrot authored Nov 20, 2023
1 parent bbe8071 commit 6985064
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions typescript/cli/src/deploy/warp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -162,10 +162,7 @@ async function runBuildConfigStep({
}

// Request input for any address fields that are missing
const requiredRouterFields: Array<keyof ConnectionClientConfig> = [
'mailbox',
'interchainSecurityModule',
];
const requiredRouterFields: Array<keyof ConnectionClientConfig> = ['mailbox'];
let hasShownInfo = false;
for (const [chain, token] of Object.entries(configMap)) {
for (const field of requiredRouterFields) {
Expand Down
2 changes: 1 addition & 1 deletion typescript/sdk/src/deploy/HyperlaneDeployer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}`);
}
});
Expand Down

0 comments on commit 6985064

Please sign in to comment.