From c254ebed2d029824e478f9c888cf39f8ca572bfe Mon Sep 17 00:00:00 2001 From: Willian Mitsuda Date: Sun, 4 Jul 2021 19:39:14 -0300 Subject: [PATCH] Parsing fixes --- src/BlockTransactions.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/BlockTransactions.tsx b/src/BlockTransactions.tsx index ef81025..d0bb9b8 100644 --- a/src/BlockTransactions.tsx +++ b/src/BlockTransactions.tsx @@ -60,10 +60,12 @@ const BlockTransactions: React.FC = () => { from: t.from, to: t.to, value: t.value, - fee: t.gasLimit.mul(t.gasPrice!), + fee: provider.formatter + .bigNumber(_receipts[i].gasUsed) + .mul(t.gasPrice!), gasPrice: t.gasPrice!, data: t.data, - status: _receipts[i].status, + status: provider.formatter.number(_receipts[i].status), }; }) .reverse()