From 394d487cb869473437c83333a0ce7b3d95b25ed7 Mon Sep 17 00:00:00 2001 From: Ayanami Date: Sat, 5 Feb 2022 12:50:51 +0900 Subject: [PATCH] Change xDai to GnosisChain --- README.md | 8 ++++---- cli.js | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 9302a1d..8d5b375 100644 --- a/README.md +++ b/README.md @@ -230,15 +230,15 @@ Infura API key fetched from https://rpc.info (Same one with Metamask) "netId100":{ "rpcUrls":{ "publicRpc":{ - "name":"xDAI Chain RPC", - "url":"https://rpc.xdaichain.com" + "name":"Gnosis Chain RPC", + "url":"https://rpc.gnosischain.com" }, "publicRpc2":{ - "name":"xDAI Chain RPC2", + "name":"Gnosis Chain RPC2", "url":"https://xdai.poanetwork.dev" }, "publicRpc3":{ - "name":"xDAI Chain RPC3", + "name":"Gnosis Chain RPC3", "url":"https://dai.poa.network/" } }, diff --git a/cli.js b/cli.js index 7a56113..ce6ea8d 100755 --- a/cli.js +++ b/cli.js @@ -581,7 +581,7 @@ function getCurrentNetworkName() { case 56: return 'BinanceSmartChain' case 100: - return 'xDai' + return 'GnosisChain' case 137: return 'Polygon' case 42161: @@ -822,7 +822,7 @@ async function fetchEvents({ type, currency, amount}) { const updatedEvents = await initJson(fileName); const updatedBlock = updatedEvents[updatedEvents.length - 1].blockNumber console.log("Cache updated for Tornado",type,amount,currency,"instance to block",updatedBlock,"successfully") - console.log('Total events:', updatedEvents.length) + console.log(`Total ${type}s:`, updatedEvents.length) return updatedEvents; } const events = await loadUpdatedEvents();