aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorDan Finlay <dan@danfinlay.com>2017-01-17 16:03:56 +0800
committerDan Finlay <dan@danfinlay.com>2017-01-17 16:03:56 +0800
commit7ae2e005eda08907cbab33a42ecc0c9d899c6802 (patch)
tree0b5db72ec08399fb9440f401d5ca33531a2e56de /app
parent54c536e72cf328e1141de6cbd0eb2e1e24b7afce (diff)
downloadtangerine-wallet-browser-7ae2e005eda08907cbab33a42ecc0c9d899c6802.tar
tangerine-wallet-browser-7ae2e005eda08907cbab33a42ecc0c9d899c6802.tar.gz
tangerine-wallet-browser-7ae2e005eda08907cbab33a42ecc0c9d899c6802.tar.bz2
tangerine-wallet-browser-7ae2e005eda08907cbab33a42ecc0c9d899c6802.tar.lz
tangerine-wallet-browser-7ae2e005eda08907cbab33a42ecc0c9d899c6802.tar.xz
tangerine-wallet-browser-7ae2e005eda08907cbab33a42ecc0c9d899c6802.tar.zst
tangerine-wallet-browser-7ae2e005eda08907cbab33a42ecc0c9d899c6802.zip
Fix removeHexPrefix to stripHexPrefix
Diffstat (limited to 'app')
-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))