feat(@wallet): make goerli default testnet
This commit is contained in:
parent
4d0bfcc501
commit
168aae40da
|
@ -56,7 +56,7 @@ let NETWORKS* = %* [
|
|||
"nativeCurrencyDecimals": 18,
|
||||
"isTest": true,
|
||||
"layer": 1,
|
||||
"enabled": true,
|
||||
"enabled": false,
|
||||
},
|
||||
{
|
||||
"chainId": 4,
|
||||
|
@ -76,7 +76,7 @@ let NETWORKS* = %* [
|
|||
{
|
||||
"chainId": 5,
|
||||
"chainName": "Goerli",
|
||||
"rpcUrl": "http://goerli.blockscout.com/",
|
||||
"rpcUrl": "https://goerli.infura.io/v3/" & INFURA_TOKEN_RESOLVED,
|
||||
"blockExplorerUrl": "https://goerli.etherscan.io/",
|
||||
"iconUrl": "network/Network=Tetnet",
|
||||
"chainColor": "#939BA1",
|
||||
|
@ -86,7 +86,7 @@ let NETWORKS* = %* [
|
|||
"nativeCurrencyDecimals": 18,
|
||||
"isTest": true,
|
||||
"layer": 1,
|
||||
"enabled": false,
|
||||
"enabled": true,
|
||||
},
|
||||
{
|
||||
"chainId": 10,
|
||||
|
|
|
@ -98,18 +98,21 @@ proc toggleNetwork*(self: Service, chainId: int) =
|
|||
|
||||
proc getNetworkForEns*(self: Service): NetworkDto =
|
||||
if self.settingsService.areTestNetworksEnabled():
|
||||
return self.getNetwork(Ropsten)
|
||||
return self.getNetwork(Goerli)
|
||||
|
||||
return self.getNetwork(Mainnet)
|
||||
|
||||
proc getNetworkForStickers*(self: Service): NetworkDto =
|
||||
return self.getNetworkForEns()
|
||||
if self.settingsService.areTestNetworksEnabled():
|
||||
return self.getNetwork(Goerli)
|
||||
|
||||
return self.getNetwork(Mainnet)
|
||||
|
||||
proc getNetworkForBrowser*(self: Service): NetworkDto =
|
||||
return self.getNetworkForEns()
|
||||
return self.getNetworkForStickers()
|
||||
|
||||
proc getNetworkForChat*(self: Service): NetworkDto =
|
||||
return self.getNetworkForEns()
|
||||
return self.getNetworkForStickers()
|
||||
|
||||
proc getNetworkForCollectibles*(self: Service): NetworkDto =
|
||||
if self.settingsService.areTestNetworksEnabled():
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit 28b76ce4ca6c5f1b1a43b0317116ed4ef0e43e37
|
||||
Subproject commit 9e0c9a58754ed2980f94bd90087a3282cfca0ace
|
Loading…
Reference in New Issue