Skip to content

Commit

Permalink
fix: gas price units in tx components (#219)
Browse files Browse the repository at this point in the history
  • Loading branch information
jagnani73 authored Oct 17, 2024
1 parent 1ba0bbd commit 3f2bf6d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -157,10 +157,10 @@ export const TransactionDetails: React.FC<TransactionDetailsProps> = ({
heading: "GAS PRICE",
content: `${calculatePrettyBalance(
BigInt(result.gas_price || 0),
result.gas_metadata?.contract_decimals,
9,
true,
10,
)} ${result.gas_metadata?.contract_ticker_symbol}`,
)} GWEI`,
},
] as CardDetailProps[]
).map((props) => (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,18 @@ export const TransactionReceipt: React.FC<TransactionReceiptProps> = ({
.gas_metadata
?.contract_ticker_symbol
}
</span>
</span>{" "}
(
{calculatePrettyBalance(
BigInt(
result.tx_metadata
?.gas_price ?? 0,
),
9,
true,
4,
)}{" "}
GWEI)
</CardDescription>
</div>
</div>
Expand Down

0 comments on commit 3f2bf6d

Please sign in to comment.