From 5e4be33121d584797d74454078bca3844daef6d1 Mon Sep 17 00:00:00 2001 From: Willian Mitsuda Date: Fri, 22 Oct 2021 17:51:20 -0300 Subject: [PATCH] Workaround for difficult overflow on ethers 5.5.x; using _difficult field: BigNumber; must change wen ethers 6 --- src/Block.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Block.tsx b/src/Block.tsx index b63e942..df16643 100644 --- a/src/Block.tsx +++ b/src/Block.tsx @@ -166,7 +166,7 @@ const Block: React.FC = () => { - {block.difficulty ? commify(block.difficulty) : "?"} + {commify(block._difficulty.toString())} {commify(block.totalDifficulty.toString())}