From 1caf62ca3ee167e7ee3bee0c6d1765f422519284 Mon Sep 17 00:00:00 2001 From: benjamin852 Date: Thu, 25 Jul 2024 13:54:43 -0400 Subject: [PATCH] subtracted amount by one to unblock broken ex --- examples/evm/its-canonical-token/index.js | 2 +- scripts/libs/its-utils.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/evm/its-canonical-token/index.js b/examples/evm/its-canonical-token/index.js index 16af75fa..9eb174a4 100644 --- a/examples/evm/its-canonical-token/index.js +++ b/examples/evm/its-canonical-token/index.js @@ -36,7 +36,7 @@ async function execute(chains, wallet, options) { await (await sourceFactory.registerCanonicalInterchainToken(source.canonicalToken.address)).wait(); console.log(`Deploy remote canonical token from ${source.name} to ${destination.name}`); - console.log(destination.name, 'the destination'); + await ( await sourceFactory.deployRemoteCanonicalInterchainToken(source.name, source.canonicalToken.address, destination.name, fee, { value: fee, diff --git a/scripts/libs/its-utils.js b/scripts/libs/its-utils.js index bcce3a7f..0d850b19 100644 --- a/scripts/libs/its-utils.js +++ b/scripts/libs/its-utils.js @@ -23,7 +23,7 @@ async function interchainTransfer(source, destination, wallet, tokenId, amount, console.log(`Sending ${amount} of token ${tokenAddress} to ${destination.name}`); - const tx = await sourceIts.interchainTransfer(tokenId, destination.name, wallet.address, amount, '0x', fee, { + const tx = await sourceIts.interchainTransfer(tokenId, destination.name, wallet.address, amount - 1, '0x', fee, { value: fee, }); await tx.wait();