Skip to content

Commit

Permalink
Cleanup example utils
Browse files Browse the repository at this point in the history
  • Loading branch information
nohaapav committed Mar 12, 2024
1 parent c764a46 commit 9f623da
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions examples/xcm-transfer/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,12 @@ export function logSrcChains(asset: string, chains: AnyChain[]) {

export function logDestChains(asset: string, chains: AnyChain[]) {
const destChains = chains.map((chain) => chain.name);
console.log(`The supported destination chains for ${asset} are: ${destChains}`);
console.log(
`The supported destination chains for ${asset} are: ${destChains}`
);
}

export function logAssets(chain: AnyChain) {
const assets = [...chain.assetsData.values()].map((a) => a.asset.key);
console.log(`The supported hydraDX assets are: ${assets}`);
console.log(`The supported ${chain.name} assets are: ${assets}`);
}

0 comments on commit 9f623da

Please sign in to comment.