aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts/keyrings/hd.js
diff options
context:
space:
mode:
authorkumavis <kumavis@users.noreply.github.com>2017-01-17 16:18:34 +0800
committerGitHub <noreply@github.com>2017-01-17 16:18:34 +0800
commit5d6041168cbc93ef092ce7c9a8fed5fe6e504724 (patch)
treeffcd05bfa6d1fb42ef8fdd20381e054a13c93517 /app/scripts/keyrings/hd.js
parent4bc09be6473539c4889143621af6681ac3a838b6 (diff)
parenta208ed1d83fd72b0dcc5146a733d8cd506a5d2a4 (diff)
downloadtangerine-wallet-browser-3.0.1.tar
tangerine-wallet-browser-3.0.1.tar.gz
tangerine-wallet-browser-3.0.1.tar.bz2
tangerine-wallet-browser-3.0.1.tar.lz
tangerine-wallet-browser-3.0.1.tar.xz
tangerine-wallet-browser-3.0.1.tar.zst
tangerine-wallet-browser-3.0.1.zip
Merge pull request #1018 from MetaMask/i1014-FixSigningv3.0.1
Fix eth.sign
Diffstat (limited to 'app/scripts/keyrings/hd.js')
-rw-r--r--app/scripts/keyrings/hd.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/scripts/keyrings/hd.js b/app/scripts/keyrings/hd.js
index 80b713b58..1b9796e07 100644
--- a/app/scripts/keyrings/hd.js
+++ b/app/scripts/keyrings/hd.js
@@ -76,7 +76,7 @@ class HdKeyring extends EventEmitter {
// For eth_sign, we need to sign transactions:
signMessage (withAccount, data) {
const wallet = this._getWalletForAccount(withAccount)
- const message = ethUtil.removeHexPrefix(data)
+ const message = ethUtil.stripHexPrefix(data)
var privKey = wallet.getPrivateKey()
var msgSig = ethUtil.ecsign(new Buffer(message, 'hex'), privKey)
var rawMsgSig = ethUtil.bufferToHex(sigUtil.concatSig(msgSig.v, msgSig.r, msgSig.s))