Fix type 2 gas column display raising exceptions
This commit is contained in:
parent
aac878180a
commit
94faa79ede
|
@ -63,10 +63,18 @@ const BlockTransactions: React.FC = () => {
|
||||||
to: t.to,
|
to: t.to,
|
||||||
createdContractAddress: _receipts[i].contractAddress,
|
createdContractAddress: _receipts[i].contractAddress,
|
||||||
value: t.value,
|
value: t.value,
|
||||||
fee: provider.formatter
|
fee:
|
||||||
|
t.type !== 2
|
||||||
|
? provider.formatter
|
||||||
.bigNumber(_receipts[i].gasUsed)
|
.bigNumber(_receipts[i].gasUsed)
|
||||||
.mul(t.gasPrice!),
|
.mul(t.gasPrice!)
|
||||||
gasPrice: t.gasPrice!,
|
: provider.formatter
|
||||||
|
.bigNumber(_receipts[i].gasUsed)
|
||||||
|
.mul(t.maxPriorityFeePerGas!.add(_block.baseFeePerGas!)),
|
||||||
|
gasPrice:
|
||||||
|
t.type !== 2
|
||||||
|
? t.gasPrice!
|
||||||
|
: t.maxPriorityFeePerGas!.add(_block.baseFeePerGas!),
|
||||||
data: t.data,
|
data: t.data,
|
||||||
status: provider.formatter.number(_receipts[i].status),
|
status: provider.formatter.number(_receipts[i].status),
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue