diff options
author | Chen Wei <chenwei@byzantine-lab.io> | 2019-07-02 15:04:00 +0800 |
---|---|---|
committer | Chen Wei <chenwei@byzantine-lab.io> | 2019-07-02 15:04:00 +0800 |
commit | ffb58b74793e9b5d5caf36efdc5d7d3867c2e162 (patch) | |
tree | 94e0b86e54e6ba2062a64bb9536a575b9f6c309b /app/scripts | |
parent | 11b14616db1153510b4c37edada7463d2e9a368b (diff) | |
download | tangerine-wallet-browser-ffb58b74793e9b5d5caf36efdc5d7d3867c2e162.tar tangerine-wallet-browser-ffb58b74793e9b5d5caf36efdc5d7d3867c2e162.tar.gz tangerine-wallet-browser-ffb58b74793e9b5d5caf36efdc5d7d3867c2e162.tar.bz2 tangerine-wallet-browser-ffb58b74793e9b5d5caf36efdc5d7d3867c2e162.tar.lz tangerine-wallet-browser-ffb58b74793e9b5d5caf36efdc5d7d3867c2e162.tar.xz tangerine-wallet-browser-ffb58b74793e9b5d5caf36efdc5d7d3867c2e162.tar.zst tangerine-wallet-browser-ffb58b74793e9b5d5caf36efdc5d7d3867c2e162.zip |
configuration, translation updating
Diffstat (limited to 'app/scripts')
-rw-r--r-- | app/scripts/controllers/network/network.js | 6 | ||||
-rw-r--r-- | app/scripts/controllers/token-rates.js | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/app/scripts/controllers/network/network.js b/app/scripts/controllers/network/network.js index b0c742e1f..aec2bf560 100644 --- a/app/scripts/controllers/network/network.js +++ b/app/scripts/controllers/network/network.js @@ -44,7 +44,7 @@ const defaultProviderConfig = { } const defaultNetworkConfig = { - ticker: 'ETH', + ticker: 'TAN', } module.exports = class NetworkController extends EventEmitter { @@ -132,7 +132,7 @@ module.exports = class NetworkController extends EventEmitter { }) } - setRpcTarget (rpcTarget, chainId, ticker = 'ETH', nickname = '', rpcPrefs) { + setRpcTarget (rpcTarget, chainId, ticker = 'TAN', nickname = '', rpcPrefs) { const providerConfig = { type: 'rpc', rpcTarget, @@ -144,7 +144,7 @@ module.exports = class NetworkController extends EventEmitter { this.providerConfig = providerConfig } - async setProviderType (type, rpcTarget = '', ticker = 'ETH', nickname = '') { + async setProviderType (type, rpcTarget = '', ticker = 'TAN', nickname = '') { console.log('1') assert.notEqual(type, 'rpc', `NetworkController - cannot call "setProviderType" with type 'rpc'. use "setRpcTarget"`) console.log('2') diff --git a/app/scripts/controllers/token-rates.js b/app/scripts/controllers/token-rates.js index 9b86a9ebf..70b8f64c7 100644 --- a/app/scripts/controllers/token-rates.js +++ b/app/scripts/controllers/token-rates.js @@ -30,7 +30,7 @@ class TokenRatesController { async updateExchangeRates () { if (!this.isActive) { return } const contractExchangeRates = {} - const nativeCurrency = this.currency ? this.currency.state.nativeCurrency.toLowerCase() : 'eth' + const nativeCurrency = this.currency ? this.currency.state.nativeCurrency.toLowerCase() : 'TAN' const pairs = this._tokens.map(token => token.address).join(',') const query = `contract_addresses=${pairs}&vs_currencies=${nativeCurrency}` if (this._tokens.length > 0) { |