diff --git a/examples/xcm-transfer/src/index.ts b/examples/xcm-transfer/src/index.ts index 2aeadd88..dda7b858 100644 --- a/examples/xcm-transfer/src/index.ts +++ b/examples/xcm-transfer/src/index.ts @@ -54,9 +54,9 @@ const wallet = new Wallet({ configureExternal(externals, configService); // Define transfer -const srcChain = configService.getChain('hydration'); -const destChain = configService.getChain('assethub'); -const asset = configService.getAsset('usdc'); +const srcChain = configService.getChain('ethereum'); +const destChain = configService.getChain('hydration'); +const asset = configService.getAsset('eth'); const configBuilder = ConfigBuilder(configService); const { sourceChains } = configBuilder.assets().asset(asset); @@ -71,8 +71,8 @@ logDestChains(asset.key, destinationChains); logSrcChains(asset.key, sourceChains); // Define source & dest accounts -const srcAddr = '7NPoMQbiA6trJKkjB35uk96MeJD4PGWkLQLH7k7hXEkZpiba'; -const destAddr = '7NPoMQbiA6trJKkjB35uk96MeJD4PGWkLQLH7k7hXEkZpiba'; +const srcAddr = 'INSERT_ADDRESS'; +const destAddr = 'INSERT_ADDRESS'; // Subscribe source chain token balance const balanceObserver = (balances: AssetAmount[]) => console.log(balances); @@ -101,7 +101,7 @@ const feeInfo = [ fee.toDecimal(fee.decimals), fee.originSymbol, ].join(' '); -const call: XCall = await xTransfer.buildCall('1'); +const call: XCall = await xTransfer.buildCall('0.1'); // Dump transfer info console.log(xTransfer);