Skip to content

Commit

Permalink
chore: potential bugfix for cosmoshub ibc transfer (#107)
Browse files Browse the repository at this point in the history
  • Loading branch information
canhtrinh authored Sep 18, 2022
1 parent d2f37d2 commit f62a256
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions components/swap/states/parts/CosmosWalletTransfer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

1 comment on commit f62a256

@vercel
Copy link

@vercel vercel bot commented on f62a256 Sep 18, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.