aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts/controllers
diff options
context:
space:
mode:
authorEsteban MIno <efmino@uc.cl>2018-08-24 02:54:40 +0800
committerEsteban MIno <efmino@uc.cl>2018-08-24 02:54:40 +0800
commitb59a1e91b8f4b595500a0785f325e833fa35407d (patch)
treee2c8f4e58961d91be4010f16ea2b91723244bddc /app/scripts/controllers
parent56bed3f1bce3cde176784026b10bc3bbe8e819d0 (diff)
downloadtangerine-wallet-browser-b59a1e91b8f4b595500a0785f325e833fa35407d.tar
tangerine-wallet-browser-b59a1e91b8f4b595500a0785f325e833fa35407d.tar.gz
tangerine-wallet-browser-b59a1e91b8f4b595500a0785f325e833fa35407d.tar.bz2
tangerine-wallet-browser-b59a1e91b8f4b595500a0785f325e833fa35407d.tar.lz
tangerine-wallet-browser-b59a1e91b8f4b595500a0785f325e833fa35407d.tar.xz
tangerine-wallet-browser-b59a1e91b8f4b595500a0785f325e833fa35407d.tar.zst
tangerine-wallet-browser-b59a1e91b8f4b595500a0785f325e833fa35407d.zip
typo watchAsset imageUrl to image
Diffstat (limited to 'app/scripts/controllers')
-rw-r--r--app/scripts/controllers/preferences.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/app/scripts/controllers/preferences.js b/app/scripts/controllers/preferences.js
index a03abbf79..d57aec71a 100644
--- a/app/scripts/controllers/preferences.js
+++ b/app/scripts/controllers/preferences.js
@@ -67,9 +67,9 @@ class PreferencesController {
addSuggestedERC20Asset (tokenOpts) {
this._validateERC20AssetParams(tokenOpts)
const suggested = this.getSuggestedTokens()
- const { rawAddress, symbol, decimals, imageUrl } = tokenOpts
+ const { rawAddress, symbol, decimals, image } = tokenOpts
const address = normalizeAddress(rawAddress)
- const newEntry = { address, symbol, decimals, imageUrl }
+ const newEntry = { address, symbol, decimals, image }
suggested[address] = newEntry
this.store.updateState({ suggestedTokens: suggested })
}
@@ -291,7 +291,7 @@ class PreferencesController {
* @returns {Promise<array>} Promises the new array of AddedToken objects.
*
*/
- async addToken (rawAddress, symbol, decimals, imageUrl) {
+ async addToken (rawAddress, symbol, decimals, image) {
const address = normalizeAddress(rawAddress)
const newEntry = { address, symbol, decimals }
const tokens = this.store.getState().tokens
@@ -306,7 +306,7 @@ class PreferencesController {
} else {
tokens.push(newEntry)
}
- assetImages[address] = imageUrl
+ assetImages[address] = image
this._updateAccountTokens(tokens, assetImages)
return Promise.resolve(tokens)
}
@@ -509,14 +509,14 @@ class PreferencesController {
*
*/
async _handleWatchAssetERC20 (options) {
- const { address, symbol, decimals, imageUrl } = options
+ const { address, symbol, decimals, image } = options
const rawAddress = address
try {
this._validateERC20AssetParams({ rawAddress, symbol, decimals })
} catch (err) {
return err
}
- const tokenOpts = { rawAddress, decimals, symbol, imageUrl }
+ const tokenOpts = { rawAddress, decimals, symbol, image }
this.addSuggestedERC20Asset(tokenOpts)
return this.showWatchAssetUi().then(() => {
const tokenAddresses = this.getTokens().filter(token => token.address === normalizeAddress(rawAddress))