File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ ---
2+ " @hyperlane-xyz/cli " : patch
3+ ---
4+
5+ Only loaded relevant chains for warp send command, improving performance by avoiding loading all chain configurations.
Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ import {
1919 assert ,
2020 parseWarpRouteMessage ,
2121 timeout ,
22+ pick ,
2223} from '@hyperlane-xyz/utils' ;
2324
2425import { EXPLORER_URL } from '../consts.js' ;
@@ -186,9 +187,16 @@ async function executeDelivery({
186187 }
187188
188189 const chainAddresses = await registry . getAddresses ( ) ;
190+ const filteredChainAddresses =
191+ origin && destination
192+ ? pick ( chainAddresses , [ origin , destination ] )
193+ : chainAddresses ;
189194
190195 // Core is needed for on-chain wait (EVM destinations)
191- const core = HyperlaneCore . fromAddressesMap ( chainAddresses , multiProvider ) ;
196+ const core = HyperlaneCore . fromAddressesMap (
197+ filteredChainAddresses ,
198+ multiProvider ,
199+ ) ;
192200
193201 // Extract mailbox addresses from registry for each chain
194202 // Required for Sealevel/non-EVM token adapters during validation
You can’t perform that action at this time.
0 commit comments