diff options
author | Hsuan Lee <boczeratul@gmail.com> | 2018-10-26 12:41:01 +0800 |
---|---|---|
committer | Hsuan Lee <hsuan@cobinhood.com> | 2018-12-10 18:29:58 +0800 |
commit | f06c8bfca9f9f44b1e70d304aa53d808a2b1881b (patch) | |
tree | fda4597ccec70b3bc795eb1c7c9187e4e9e41330 | |
parent | 9da38a14c4da20901e04629d040896bd8344a313 (diff) | |
download | dexon-wallet-f06c8bfca9f9f44b1e70d304aa53d808a2b1881b.tar.gz dexon-wallet-f06c8bfca9f9f44b1e70d304aa53d808a2b1881b.tar.zst dexon-wallet-f06c8bfca9f9f44b1e70d304aa53d808a2b1881b.zip |
Update DEXON testnet chainId
-rw-r--r-- | app/scripts/controllers/network/enums.js | 2 | ||||
-rw-r--r-- | app/scripts/controllers/transactions/index.js | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/app/scripts/controllers/network/enums.js b/app/scripts/controllers/network/enums.js index 5ac90085..fd00a60e 100644 --- a/app/scripts/controllers/network/enums.js +++ b/app/scripts/controllers/network/enums.js @@ -6,7 +6,7 @@ const TESTNET = 'testnet' const LOCALHOST = 'localhost' const MAINNET_CODE = 1 -const TESTNET_CODE = 2 +const TESTNET_CODE = 237 const ROPSTEN_CODE = 3 const RINKEYBY_CODE = 4 const KOVAN_CODE = 42 diff --git a/app/scripts/controllers/transactions/index.js b/app/scripts/controllers/transactions/index.js index 8fbc3cbc..718dd20e 100644 --- a/app/scripts/controllers/transactions/index.js +++ b/app/scripts/controllers/transactions/index.js @@ -111,7 +111,8 @@ class TransactionController extends EventEmitter { const networkState = this.networkStore.getState() const getChainId = parseInt(networkState) if (Number.isNaN(getChainId)) { - return 0 + // default to DEXON testnet + return 237 } else { return getChainId } |