diff --git a/packages/fast-usdc/test/snapshots/fast-usdc.contract.test.ts.md b/packages/fast-usdc/test/snapshots/fast-usdc.contract.test.ts.md index 42cfa097928..62804cfa992 100644 --- a/packages/fast-usdc/test/snapshots/fast-usdc.contract.test.ts.md +++ b/packages/fast-usdc/test/snapshots/fast-usdc.contract.test.ts.md @@ -539,14 +539,12 @@ Generated by [AVA](https://avajs.dev). 'ibc/498A0751C798A0D9A389AA3691123DADA57DAA4FE165D5C75894505B876BA6E4': { baseDenom: 'uusdc', baseName: 'noble', - brandKey: undefined, chainName: 'osmosis', }, 'ibc/FE98AAD68F02F03565E9FA39A5E627946699B2B07115889ED812D8BA639576A9': { baseDenom: 'uusdc', baseName: 'noble', brand: Object @Alleged: USDC brand {}, - brandKey: 'USDC', chainName: 'agoric', }, uusdc: { diff --git a/packages/fast-usdc/test/snapshots/fast-usdc.contract.test.ts.snap b/packages/fast-usdc/test/snapshots/fast-usdc.contract.test.ts.snap index dcb9a05cb25..084687b3bab 100644 Binary files a/packages/fast-usdc/test/snapshots/fast-usdc.contract.test.ts.snap and b/packages/fast-usdc/test/snapshots/fast-usdc.contract.test.ts.snap differ diff --git a/packages/orchestration/src/utils/chain-hub-helper.js b/packages/orchestration/src/utils/chain-hub-helper.js index 1ae2e0ffaf8..306a5ecef56 100644 --- a/packages/orchestration/src/utils/chain-hub-helper.js +++ b/packages/orchestration/src/utils/chain-hub-helper.js @@ -29,7 +29,7 @@ export const registerChainsAndAssets = ( for (const [chainName, allInfo] of Object.entries(chainInfo)) { const { connections, ...info } = allInfo; chainHub.registerChain(chainName, info); - conns[info.chainId] = connections; + if (connections) conns[info.chainId] = connections; } const registeredPairs = new Set(); for (const [pChainId, connInfos] of Object.entries(conns)) { @@ -48,9 +48,10 @@ export const registerChainsAndAssets = ( return; } for (const [denom, info] of Object.entries(assetInfo)) { - const infoWithBrand = info.brandKey - ? { ...info, brand: brands[info.brandKey] } - : info; + const { brandKey, ...rest } = info; + const infoWithBrand = brandKey + ? { ...rest, brand: brands[brandKey] } + : rest; chainHub.registerAsset(denom, infoWithBrand); } };