aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts/controllers/network/util.js
diff options
context:
space:
mode:
authorPaul Bouchon <mail@bitpshr.net>2019-04-18 01:34:49 +0800
committerWhymarrh Whitby <whymarrh.whitby@gmail.com>2019-04-18 01:34:49 +0800
commit0db0a187c8f30dcf332cf4d41a2f957171b25630 (patch)
treea57dc4e161dcefa8a2a96c9b14c24dbe1635588b /app/scripts/controllers/network/util.js
parent00133d31b15d070d55dff13f568cf828dad41424 (diff)
downloadtangerine-wallet-browser-0db0a187c8f30dcf332cf4d41a2f957171b25630.tar.gz
tangerine-wallet-browser-0db0a187c8f30dcf332cf4d41a2f957171b25630.tar.zst
tangerine-wallet-browser-0db0a187c8f30dcf332cf4d41a2f957171b25630.zip
feature: add Goerli support (#6459)
Diffstat (limited to 'app/scripts/controllers/network/util.js')
-rw-r--r--app/scripts/controllers/network/util.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/scripts/controllers/network/util.js b/app/scripts/controllers/network/util.js
index 261dae721..b0afccd7e 100644
--- a/app/scripts/controllers/network/util.js
+++ b/app/scripts/controllers/network/util.js
@@ -3,13 +3,16 @@ const {
RINKEBY,
KOVAN,
MAINNET,
+ GOERLI,
ROPSTEN_CODE,
RINKEYBY_CODE,
KOVAN_CODE,
+ GOERLI_CODE,
ROPSTEN_DISPLAY_NAME,
RINKEBY_DISPLAY_NAME,
KOVAN_DISPLAY_NAME,
MAINNET_DISPLAY_NAME,
+ GOERLI_DISPLAY_NAME,
} = require('./enums')
const networkToNameMap = {
@@ -17,9 +20,11 @@ const networkToNameMap = {
[RINKEBY]: RINKEBY_DISPLAY_NAME,
[KOVAN]: KOVAN_DISPLAY_NAME,
[MAINNET]: MAINNET_DISPLAY_NAME,
+ [GOERLI]: GOERLI_DISPLAY_NAME,
[ROPSTEN_CODE]: ROPSTEN_DISPLAY_NAME,
[RINKEYBY_CODE]: RINKEBY_DISPLAY_NAME,
[KOVAN_CODE]: KOVAN_DISPLAY_NAME,
+ [GOERLI_CODE]: GOERLI_DISPLAY_NAME,
}
const getNetworkDisplayName = key => networkToNameMap[key]