|
|
|
@ -204,7 +204,6 @@ class PreferencesController { |
|
|
|
|
* |
|
|
|
|
*/ |
|
|
|
|
setSelectedAddress (_address) { |
|
|
|
|
return new Promise((resolve, reject) => { |
|
|
|
|
const address = normalizeAddress(_address) |
|
|
|
|
const addressTokens = this.store.getState().addressTokens |
|
|
|
|
const providerType = this.network.providerStore.getState().type |
|
|
|
@ -216,8 +215,7 @@ class PreferencesController { |
|
|
|
|
const tokens = addressTokens[providerType][address] |
|
|
|
|
|
|
|
|
|
this.store.updateState({ selectedAddress: address, tokens }) |
|
|
|
|
resolve() |
|
|
|
|
}) |
|
|
|
|
return Promise.resolve(tokens) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|