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+ " @hyperlane-xyz/sdk " : patch
4+ ---
5+
6+ Fixed cctp transfer validation
Original file line number Diff line number Diff line change @@ -50,9 +50,7 @@ import {
5050 getRouterAddressesFromWarpCoreConfig ,
5151 getSubmitterBuilder ,
5252 getTokenConnectionId ,
53- isCollateralTokenConfig ,
5453 isCrossCollateralTokenConfig ,
55- isXERC20TokenConfig ,
5654 normalizeScale ,
5755 splitWarpCoreAndExtendedConfigs ,
5856 tokenTypeToStandard ,
@@ -370,10 +368,8 @@ function generateTokenConfigs(
370368 for ( const chainName of Object . keys ( contracts ) ) {
371369 const config = warpDeployConfig [ chainName ] ;
372370 const collateralAddressOrDenom =
373- isCollateralTokenConfig ( config ) ||
374- isXERC20TokenConfig ( config ) ||
375- isCrossCollateralTokenConfig ( config )
376- ? ( config as { token : string } ) . token // gets set in the above deriveTokenMetadata()
371+ 'token' in config && typeof config . token === 'string'
372+ ? config . token
377373 : undefined ;
378374
379375 const protocol = multiProvider . getProtocol ( chainName ) ;
Original file line number Diff line number Diff line change @@ -850,6 +850,7 @@ export {
850850 HypTokenRouterConfigSchema ,
851851 HypTokenRouterVirtualConfig ,
852852 isCollateralRebaseTokenConfig ,
853+ isCctpTokenConfig ,
853854 isCollateralTokenConfig ,
854855 isMovableCollateralTokenConfig ,
855856 isNativeTokenConfig ,
Original file line number Diff line number Diff line change @@ -45,8 +45,11 @@ function matchesUnderlyingAsset(
4545 return true ;
4646 }
4747
48+ // Only HypNative collateral legitimately lacks collateralAddressOrDenom;
49+ // any other collateralized token missing it is a config bug, not a native match.
4850 if (
4951 ! source . collateralAddressOrDenom &&
52+ source . isHypNative ( ) &&
5053 ( target . isNative ( ) || target . isHypNative ( ) )
5154 ) {
5255 return true ;
You can’t perform that action at this time.
0 commit comments