From ce05f06531da628594b29baeed0b9a4e853ffb84 Mon Sep 17 00:00:00 2001 From: cor Date: Thu, 9 Jan 2025 13:17:00 +0000 Subject: [PATCH] fix(typescript-sdk): update transfer abi args --- typescript-sdk/src/evm/transfer.ts | 26 ++++++++++++-------------- 1 file changed, 12 insertions(+), 14 deletions(-) diff --git a/typescript-sdk/src/evm/transfer.ts b/typescript-sdk/src/evm/transfer.ts index 56051c163f..8e081a36ad 100644 --- a/typescript-sdk/src/evm/transfer.ts +++ b/typescript-sdk/src/evm/transfer.ts @@ -92,28 +92,26 @@ export async function transferAssetFromEvm( functionName: "transfer", address: relayContractAddress, /** - * uint32 channelId, - * uint64 timeoutHeight, - * uint64 timeoutTimestamp, - * bytes32 salt, - * bytes calldata receiver, - * address sentToken, - * uint256 sentAmount, - * bytes calldata askToken, - * uint256 askAmount, - * bool onlyMaker + "channelId": "uint32" + "receiver": "bytes" + "baseToken": "address" + "baseAmount": "uint256" + "quoteToken": "bytes" + "quoteAmount": "uint256" + "timeoutHeight": "uint64" + "timeoutTimestamp": "uint64" + "salt": "bytes32" */ args: [ sourceChannel, - 0n, // TODO: customize timeoutheight - "0x000000000000000000000000000000000000000000000000fffffffffffffffa", // TODO: make non-hexencoded timestamp - toHex(salt), receiver.startsWith("0x") ? getAddress(receiver) : bech32AddressToHex({ address: receiver }), denomAddress, amount, askToken, amount, // we want the same amount on dest as we send on the source - false + 0n, // TODO: customize timeoutheight + "0x000000000000000000000000000000000000000000000000fffffffffffffffa", // TODO: make non-hexencoded timestamp + toHex(salt) ] } as const if (!simulate) {