diff --git a/app/scripts/controllers/incoming-transactions.js b/app/scripts/controllers/incoming-transactions.js index 557ee8b6363c..c268073acab5 100644 --- a/app/scripts/controllers/incoming-transactions.js +++ b/app/scripts/controllers/incoming-transactions.js @@ -7,7 +7,7 @@ import fetchWithTimeout from '../lib/fetch-with-timeout' const { MAINNET_CODE, ROPSTEN_CODE, - RINKEYBY_CODE, + RINKEBY_CODE, KOVAN_CODE, ROPSTEN, RINKEBY, @@ -16,7 +16,7 @@ const { } = require('./network/enums') const networkTypeToIdMap = { [ROPSTEN]: String(ROPSTEN_CODE), - [RINKEBY]: String(RINKEYBY_CODE), + [RINKEBY]: String(RINKEBY_CODE), [KOVAN]: String(KOVAN_CODE), [MAINNET]: String(MAINNET_CODE), } diff --git a/app/scripts/controllers/network/enums.js b/app/scripts/controllers/network/enums.js index 2f7025392f5b..472adce54888 100644 --- a/app/scripts/controllers/network/enums.js +++ b/app/scripts/controllers/network/enums.js @@ -7,7 +7,7 @@ const GOERLI = 'goerli' const MAINNET_CODE = 1 const ROPSTEN_CODE = 3 -const RINKEYBY_CODE = 4 +const RINKEBY_CODE = 4 const KOVAN_CODE = 42 const GOERLI_CODE = 5 @@ -26,7 +26,7 @@ module.exports = { GOERLI, MAINNET_CODE, ROPSTEN_CODE, - RINKEYBY_CODE, + RINKEBY_CODE, KOVAN_CODE, GOERLI_CODE, ROPSTEN_DISPLAY_NAME, diff --git a/app/scripts/controllers/network/util.js b/app/scripts/controllers/network/util.js index b0afccd7e511..a6f848864485 100644 --- a/app/scripts/controllers/network/util.js +++ b/app/scripts/controllers/network/util.js @@ -5,7 +5,7 @@ const { MAINNET, GOERLI, ROPSTEN_CODE, - RINKEYBY_CODE, + RINKEBY_CODE, KOVAN_CODE, GOERLI_CODE, ROPSTEN_DISPLAY_NAME, @@ -22,7 +22,7 @@ const networkToNameMap = { [MAINNET]: MAINNET_DISPLAY_NAME, [GOERLI]: GOERLI_DISPLAY_NAME, [ROPSTEN_CODE]: ROPSTEN_DISPLAY_NAME, - [RINKEYBY_CODE]: RINKEBY_DISPLAY_NAME, + [RINKEBY_CODE]: RINKEBY_DISPLAY_NAME, [KOVAN_CODE]: KOVAN_DISPLAY_NAME, [GOERLI_CODE]: GOERLI_DISPLAY_NAME, } diff --git a/app/scripts/lib/account-tracker.js b/app/scripts/lib/account-tracker.js index 1cbf867cba1a..3137ea8a363f 100644 --- a/app/scripts/lib/account-tracker.js +++ b/app/scripts/lib/account-tracker.js @@ -15,7 +15,7 @@ const Web3 = require('web3') const SINGLE_CALL_BALANCES_ABI = require('single-call-balance-checker-abi') const { bnToHex } = require('./util') -const { MAINNET_CODE, RINKEYBY_CODE, ROPSTEN_CODE, KOVAN_CODE } = require('../controllers/network/enums') +const { MAINNET_CODE, RINKEBY_CODE, ROPSTEN_CODE, KOVAN_CODE } = require('../controllers/network/enums') const { SINGLE_CALL_BALANCES_ADDRESS, SINGLE_CALL_BALANCES_ADDRESS_RINKEBY, SINGLE_CALL_BALANCES_ADDRESS_ROPSTEN, SINGLE_CALL_BALANCES_ADDRESS_KOVAN } = require('../controllers/network/contract-addresses') @@ -186,7 +186,7 @@ class AccountTracker { await this._updateAccountsViaBalanceChecker(addresses, SINGLE_CALL_BALANCES_ADDRESS) break - case RINKEYBY_CODE: + case RINKEBY_CODE: await this._updateAccountsViaBalanceChecker(addresses, SINGLE_CALL_BALANCES_ADDRESS_RINKEBY) break diff --git a/test/unit/app/controllers/transactions/recipient-blacklist-checker-test.js b/test/unit/app/controllers/transactions/recipient-blacklist-checker-test.js index 1d6a0eb08ca3..17277df54af3 100644 --- a/test/unit/app/controllers/transactions/recipient-blacklist-checker-test.js +++ b/test/unit/app/controllers/transactions/recipient-blacklist-checker-test.js @@ -2,7 +2,7 @@ const assert = require('assert') const recipientBlackListChecker = require('../../../../../app/scripts/controllers/transactions/lib/recipient-blacklist-checker') const { ROPSTEN_CODE, - RINKEYBY_CODE, + RINKEBY_CODE, KOVAN_CODE, GOERLI_CODE, } = require('../../../../../app/scripts/controllers/network/enums') @@ -28,7 +28,7 @@ describe('Recipient Blacklist Checker', function () { describe('#checkAccount', function () { it('does not fail on test networks', function () { let callCount = 0 - const networks = [ROPSTEN_CODE, RINKEYBY_CODE, KOVAN_CODE, GOERLI_CODE] + const networks = [ROPSTEN_CODE, RINKEBY_CODE, KOVAN_CODE, GOERLI_CODE] for (const networkId in networks) { publicAccounts.forEach((account) => { recipientBlackListChecker.checkAccount(networkId, account) diff --git a/ui/app/components/app/network-display/network-display.component.js b/ui/app/components/app/network-display/network-display.component.js index 2664762672c1..bcac637bd4e0 100644 --- a/ui/app/components/app/network-display/network-display.component.js +++ b/ui/app/components/app/network-display/network-display.component.js @@ -4,7 +4,7 @@ import classnames from 'classnames' import { MAINNET_CODE, ROPSTEN_CODE, - RINKEYBY_CODE, + RINKEBY_CODE, KOVAN_CODE, GOERLI_CODE, } from '../../../../../app/scripts/controllers/network/enums' @@ -12,7 +12,7 @@ import { const networkToClassHash = { [MAINNET_CODE]: 'mainnet', [ROPSTEN_CODE]: 'ropsten', - [RINKEYBY_CODE]: 'rinkeby', + [RINKEBY_CODE]: 'rinkeby', [GOERLI_CODE]: 'goerli', [KOVAN_CODE]: 'kovan', }