Change xDai to GnosisChain

This commit is contained in:
Ayanami 2022-02-05 12:50:51 +09:00
parent 00ca8a07f7
commit 394d487cb8
No known key found for this signature in database
GPG key ID: 0CABDF03077D92E4
2 changed files with 6 additions and 6 deletions

4
cli.js
View file

@ -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();