aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts/keyrings/simple.js
diff options
context:
space:
mode:
authorDan Finlay <dan@danfinlay.com>2017-02-14 13:25:02 +0800
committerDan Finlay <dan@danfinlay.com>2017-02-14 13:25:02 +0800
commitf2486fbdd34246619f62ff67bb3ab6e77d202f26 (patch)
tree291c60ebc060f921d3b399f02257d0d046cc8479 /app/scripts/keyrings/simple.js
parentb862d942097b645abe31fa2af87226e544ecd627 (diff)
downloadtangerine-wallet-browser-f2486fbdd34246619f62ff67bb3ab6e77d202f26.tar
tangerine-wallet-browser-f2486fbdd34246619f62ff67bb3ab6e77d202f26.tar.gz
tangerine-wallet-browser-f2486fbdd34246619f62ff67bb3ab6e77d202f26.tar.bz2
tangerine-wallet-browser-f2486fbdd34246619f62ff67bb3ab6e77d202f26.tar.lz
tangerine-wallet-browser-f2486fbdd34246619f62ff67bb3ab6e77d202f26.tar.xz
tangerine-wallet-browser-f2486fbdd34246619f62ff67bb3ab6e77d202f26.tar.zst
tangerine-wallet-browser-f2486fbdd34246619f62ff67bb3ab6e77d202f26.zip
got hash test passing
Diffstat (limited to 'app/scripts/keyrings/simple.js')
-rw-r--r--app/scripts/keyrings/simple.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/scripts/keyrings/simple.js b/app/scripts/keyrings/simple.js
index b6ffc606e..82881aa2d 100644
--- a/app/scripts/keyrings/simple.js
+++ b/app/scripts/keyrings/simple.js
@@ -88,7 +88,8 @@ class SimpleKeyring extends EventEmitter {
/* PRIVATE METHODS */
_getWalletForAccount (account) {
- let wallet = this.wallets.find(w => ethUtil.bufferToHex(w.getAddress()) === account)
+ const address = sigUtil.normalize(account)
+ let wallet = this.wallets.find(w => ethUtil.bufferToHex(w.getAddress()) === address)
if (!wallet) throw new Error('Simple Keyring - Unable to find matching address.')
return wallet
}