Add Optimistic network support & update README.md

This commit is contained in:
Ayanami 2022-01-23 18:42:08 +09:00
parent e865eb9af8
commit 90a34da5b8
No known key found for this signature in database
GPG key ID: 0CABDF03077D92E4
3 changed files with 91 additions and 5 deletions

4
cli.js
View file

@ -486,6 +486,8 @@ function getExplorerLink() {
return 'goerli.etherscan.io'
case 42:
return 'kovan.etherscan.io'
case 10:
return 'optimistic.etherscan.io'
default:
return 'etherscan.io'
}
@ -510,6 +512,8 @@ function getCurrentNetworkName() {
return 'Goerli'
case 42:
return 'Kovan'
case 137:
return 'Optimism'
default:
return 'localRPC'
}