Workaround for difficult overflow on ethers 5.5.x; using _difficult field: BigNumber; must change wen ethers 6

This commit is contained in:
Willian Mitsuda 2021-10-22 17:51:20 -03:00
parent 5533e7786e
commit 5e4be33121
1 changed files with 1 additions and 1 deletions

View File

@ -166,7 +166,7 @@ const Block: React.FC = () => {
<USDValue value={blockETHUSDPrice} />
</InfoRow>
<InfoRow title="Difficult">
{block.difficulty ? commify(block.difficulty) : "?"}
{commify(block._difficulty.toString())}
</InfoRow>
<InfoRow title="Total Difficult">
{commify(block.totalDifficulty.toString())}