Skip to content

Commit

Permalink
subtracted amount by one to unblock broken ex (#196)
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamin852 authored Jul 30, 2024
1 parent 075dad5 commit 99af758
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/evm/its-canonical-token/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion scripts/libs/its-utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 99af758

Please sign in to comment.