From 6174e551da010a4968a118b6456f472c34d089a7 Mon Sep 17 00:00:00 2001 From: green-jay Date: Mon, 23 Dec 2024 13:29:57 +0100 Subject: [PATCH] undo changes to index --- examples/xcm-transfer/src/index.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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);