Skip to content

Commit

Permalink
fix(wallet): use correct gas estimation in preview send form (#4339)
Browse files Browse the repository at this point in the history
  • Loading branch information
VmMad authored Dec 3, 2024
1 parent 1c2f8a6 commit 130ccae
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { ExplorerLink, ExplorerLinkType, TxnAmount } from '_components';
import { useActiveAddress } from '_src/ui/app/hooks/useActiveAddress';
import { parseAmount, useCoinMetadata, useFormatCoin } from '@iota/core';
import { Divider, KeyValueInfo } from '@iota/apps-ui-kit';
import { formatAddress } from '@iota/iota-sdk/utils';
import { formatAddress, IOTA_TYPE_ARG } from '@iota/iota-sdk/utils';

export type PreviewTransferProps = {
coinType: string;
Expand All @@ -26,7 +26,7 @@ export function PreviewTransfer({
const accountAddress = useActiveAddress();
const { data: metadata } = useCoinMetadata(coinType);
const amountWithoutDecimals = parseAmount(amount, metadata?.decimals ?? 0);
const [formattedGasBudgetEstimation, gasToken] = useFormatCoin(gasBudget, coinType);
const [formattedGasBudgetEstimation, gasToken] = useFormatCoin(gasBudget, IOTA_TYPE_ARG);

return (
<div className="flex w-full flex-col gap-md">
Expand Down

0 comments on commit 130ccae

Please sign in to comment.