From 130ccae339daaf524544b97ce4ae68835334b892 Mon Sep 17 00:00:00 2001 From: JCNoguera <88061365+VmMad@users.noreply.github.com> Date: Tue, 3 Dec 2024 16:54:58 +0100 Subject: [PATCH] fix(wallet): use correct gas estimation in preview send form (#4339) --- .../src/ui/app/pages/home/transfer-coin/PreviewTransfer.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/wallet/src/ui/app/pages/home/transfer-coin/PreviewTransfer.tsx b/apps/wallet/src/ui/app/pages/home/transfer-coin/PreviewTransfer.tsx index c2288f7a4eb..faed355c243 100644 --- a/apps/wallet/src/ui/app/pages/home/transfer-coin/PreviewTransfer.tsx +++ b/apps/wallet/src/ui/app/pages/home/transfer-coin/PreviewTransfer.tsx @@ -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; @@ -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 (