aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts/keyrings/simple.js
diff options
context:
space:
mode:
authorkumavis <kumavis@users.noreply.github.com>2017-02-16 02:51:49 +0800
committerGitHub <noreply@github.com>2017-02-16 02:51:49 +0800
commitf2539d125c2cfe240511f8505e222a9893bf7748 (patch)
treef58eaa54c0fd5818735ab6a282093bc8eb7bcd9d /app/scripts/keyrings/simple.js
parent07422ae8350c08a68ecf17b8ca2ec08f9ea1805f (diff)
parent0b0eec9c52667148fc69e1a3446bcd208dab3858 (diff)
downloadtangerine-wallet-browser-f2539d125c2cfe240511f8505e222a9893bf7748.tar.gz
tangerine-wallet-browser-f2539d125c2cfe240511f8505e222a9893bf7748.tar.zst
tangerine-wallet-browser-f2539d125c2cfe240511f8505e222a9893bf7748.zip
Merge pull request #1113 from MetaMask/RecoverTests
Add tests showing recovering public key from signature
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
}