From f62a2560f983c98553a3fe305660621deb5c4c2c Mon Sep 17 00:00:00 2001 From: Canh Trinh Date: Sun, 18 Sep 2022 10:28:06 -0400 Subject: [PATCH] chore: potential bugfix for cosmoshub ibc transfer (#107) --- components/swap/states/parts/CosmosWalletTransfer.tsx | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/components/swap/states/parts/CosmosWalletTransfer.tsx b/components/swap/states/parts/CosmosWalletTransfer.tsx index 7203de5b4..5c1f51dda 100644 --- a/components/swap/states/parts/CosmosWalletTransfer.tsx +++ b/components/swap/states/parts/CosmosWalletTransfer.tsx @@ -173,9 +173,12 @@ export const CosmosWalletTransfer = () => { // [sendCoin], // fee // ); - const [_action, _channel, _denom] = currentAsset?.fullDenomPath?.split( - "/" - ) as string[]; + // const [_action, _channel, _denom] = currentAsset?.fullDenomPath?.split( + // "/" + // ) as string[]; + + const _action = "transfer"; + const _channel = getCosmosChains(allAssets).find(chain => chain.chainIdentifier.toLowerCase() === srcChain.chainName.toLowerCase())?.chainToAxelarChannelId as string; const timeoutHeight: Height = { revisionHeight: Long.fromNumber(10),