mirror of
https://github.com/tornadocash/tornado-cli.git
synced 2024-11-21 17:27:07 +01:00
Fix Optimism network support
Correct chainId for Optimism network
This commit is contained in:
parent
04623a23e6
commit
00ca8a07f7
70
README.md
70
README.md
@ -457,6 +457,41 @@ Infura API key fetched from https://rpc.info (Same one with Metamask)
|
||||
}
|
||||
}
|
||||
},
|
||||
"netId10":{
|
||||
"rpcUrls":{
|
||||
"Optimism":{
|
||||
"name":"Optimism Public RPC",
|
||||
"url":"https://mainnet.optimism.io"
|
||||
}
|
||||
},
|
||||
"relayers":{
|
||||
"optimism.t-relay.eth":{
|
||||
"url":"optimism.t-relay.eth",
|
||||
"name":"optimism.t-relay.eth",
|
||||
"cachedUrl":"https://optimism.t-relay.online/"
|
||||
},
|
||||
"optimism.therelayer.eth":{
|
||||
"url":"optimism.therelayer.eth",
|
||||
"name":"optimism.therelayer.eth",
|
||||
"cachedUrl":"https://optimism.therelayer.xyz/"
|
||||
},
|
||||
"optimism.relayer-service.eth":{
|
||||
"url":"optimism.relayer-service.eth",
|
||||
"name":"optimism.relayer-service.eth",
|
||||
"cachedUrl":"https://optimism-relayer.hertz.zone/"
|
||||
},
|
||||
"optimism.torn.eth":{
|
||||
"url":"optimism.torn.eth",
|
||||
"name":"optimism.torn.eth",
|
||||
"cachedUrl":"https://optimism.torn.cash/"
|
||||
},
|
||||
"optimism.relaymy.eth":{
|
||||
"url":"optimism.relaymy.eth",
|
||||
"name":"optimism.relaymy.eth",
|
||||
"cachedUrl":"https://optimism.relaymy.xyz/"
|
||||
}
|
||||
}
|
||||
},
|
||||
"netId5":{
|
||||
"rpcUrls":{
|
||||
"Infura":{
|
||||
@ -547,41 +582,6 @@ Infura API key fetched from https://rpc.info (Same one with Metamask)
|
||||
"cachedUrl":"https://goerli-v2.defidevotee.xyz"
|
||||
}
|
||||
}
|
||||
},
|
||||
"netId10":{
|
||||
"rpcUrls":{
|
||||
"Optimism":{
|
||||
"name":"Optimism Public RPC",
|
||||
"url":"https://mainnet.optimism.io"
|
||||
}
|
||||
},
|
||||
"relayers":{
|
||||
"optimism.t-relay.eth":{
|
||||
"url":"optimism.t-relay.eth",
|
||||
"name":"optimism.t-relay.eth",
|
||||
"cachedUrl":"https://optimism.t-relay.online/"
|
||||
},
|
||||
"optimism.therelayer.eth":{
|
||||
"url":"optimism.therelayer.eth",
|
||||
"name":"optimism.therelayer.eth",
|
||||
"cachedUrl":"https://optimism.therelayer.xyz/"
|
||||
},
|
||||
"optimism.relayer-service.eth":{
|
||||
"url":"optimism.relayer-service.eth",
|
||||
"name":"optimism.relayer-service.eth",
|
||||
"cachedUrl":"https://optimism-relayer.hertz.zone/"
|
||||
},
|
||||
"optimism.torn.eth":{
|
||||
"url":"optimism.torn.eth",
|
||||
"name":"optimism.torn.eth",
|
||||
"cachedUrl":"https://optimism.torn.cash/"
|
||||
},
|
||||
"optimism.relaymy.eth":{
|
||||
"url":"optimism.relaymy.eth",
|
||||
"name":"optimism.relaymy.eth",
|
||||
"cachedUrl":"https://optimism.relaymy.xyz/"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
2
cli.js
2
cli.js
@ -592,7 +592,7 @@ function getCurrentNetworkName() {
|
||||
return 'Goerli'
|
||||
case 42:
|
||||
return 'Kovan'
|
||||
case 137:
|
||||
case 10:
|
||||
return 'Optimism'
|
||||
default:
|
||||
return 'testRPC'
|
||||
|
Loading…
Reference in New Issue
Block a user