Skip to content

Commit

Permalink
fix(sdk): fixed ism configuration when deplying ccip ism
Browse files Browse the repository at this point in the history
  • Loading branch information
xeno097 authored and paulbalaji committed Feb 10, 2025
1 parent bbdea86 commit ec73648
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions solidity/remappings.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
@eth-optimism=../node_modules/@eth-optimism
@layerzerolabs=../node_modules/@layerzerolabs
@openzeppelin=../node_modules/@openzeppelin
@chainlink=../node_modules/@chainlink
ds-test/=lib/forge-std/lib/ds-test/src/
forge-std/=lib/forge-std/src/
fx-portal/=lib/fx-portal/
6 changes: 4 additions & 2 deletions typescript/sdk/src/ism/HyperlaneIsmFactory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -243,14 +243,16 @@ export class HyperlaneIsmFactory extends HyperlaneApp<ProxyFactoryFactories> {
config: CCIPIsmConfig,
): Promise<CCIPIsm> {
const ccipChainSelector = getCCIPChainSelector(config.originChain);
const ccipRouterAddress = getCCIPRouterAddress(config.originChain);

// Get the CCIP router address to set it on the ISM so that it can call ccipReceive
const ccipRouterAddress = getCCIPRouterAddress(destination);
assert(
ccipChainSelector,
`CCIP chain selector not found for ${config.originChain}`,
);
assert(
ccipRouterAddress,
`CCIP router address not found for ${config.originChain}`,
`CCIP router address not found for ${destination}`,
);
return this.deployer.deployContract(destination, IsmType.CCIP, [
ccipRouterAddress,
Expand Down

0 comments on commit ec73648

Please sign in to comment.