Commit c2d398ec authored by Luke's avatar Luke Committed by GitHub

fix(tx): when txReceipt.effectiveGasPrice is nill can't call...

fix(tx): when txReceipt.effectiveGasPrice is nill can't call txReceipt.effectiveGasPrice.toString() (#1571)
parent 1ba91168
...@@ -77,7 +77,7 @@ const TxDetailsDegraded = ({ hash, txQuery }: Props) => { ...@@ -77,7 +77,7 @@ const TxDetailsDegraded = ({ hash, txQuery }: Props) => {
status, status,
block: tx.blockNumber ? Number(tx.blockNumber) : null, block: tx.blockNumber ? Number(tx.blockNumber) : null,
value: tx.value.toString(), value: tx.value.toString(),
gas_price: txReceipt?.effectiveGasPrice.toString() ?? tx.gasPrice?.toString() ?? null, gas_price: gasPrice?.toString() ?? null,
base_fee_per_gas: block?.baseFeePerGas?.toString() ?? null, base_fee_per_gas: block?.baseFeePerGas?.toString() ?? null,
max_fee_per_gas: tx.maxFeePerGas?.toString() ?? null, max_fee_per_gas: tx.maxFeePerGas?.toString() ?? null,
max_priority_fee_per_gas: tx.maxPriorityFeePerGas?.toString() ?? null, max_priority_fee_per_gas: tx.maxPriorityFeePerGas?.toString() ?? null,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment