From a364b0d21c184661bf2eb0055168ab5df3eaf414 Mon Sep 17 00:00:00 2001 From: lza_menace Date: Wed, 4 Jan 2023 14:28:00 -0800 Subject: [PATCH] safer to format wei as string --- src/scraper.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scraper.js b/src/scraper.js index 36afaee..40e6c55 100644 --- a/src/scraper.js +++ b/src/scraper.js @@ -272,7 +272,7 @@ class Scrape extends Collection { } } if (sale) { - let amountEther = ethers.utils.formatEther(amountWei); + let amountEther = ethers.utils.formatEther(amountWei.toString()); let msg = `[ ${timestamp.toISOString()} ][ ${this.contractName} ][ sale ] #${tokenId}: ${fromAddress} => ${toAddress} for ${amountEther}Ξ (${platform}) in tx ${txHash}:${logIndex}\n`; console.log(msg); const q = {