diff options
author | Dan Finlay <dan@danfinlay.com> | 2017-01-17 15:26:48 +0800 |
---|---|---|
committer | Dan Finlay <dan@danfinlay.com> | 2017-01-17 15:26:48 +0800 |
commit | d5ad84aa125280e86c5ae3c3cec5a0f73dfb35fe (patch) | |
tree | 8ef09167b8c9f2b66587422ab6f5b9cb5e7c0342 /app | |
parent | 7e886dff778f7772f5664491a1255614c08483f2 (diff) | |
download | tangerine-wallet-browser-d5ad84aa125280e86c5ae3c3cec5a0f73dfb35fe.tar tangerine-wallet-browser-d5ad84aa125280e86c5ae3c3cec5a0f73dfb35fe.tar.gz tangerine-wallet-browser-d5ad84aa125280e86c5ae3c3cec5a0f73dfb35fe.tar.bz2 tangerine-wallet-browser-d5ad84aa125280e86c5ae3c3cec5a0f73dfb35fe.tar.lz tangerine-wallet-browser-d5ad84aa125280e86c5ae3c3cec5a0f73dfb35fe.tar.xz tangerine-wallet-browser-d5ad84aa125280e86c5ae3c3cec5a0f73dfb35fe.tar.zst tangerine-wallet-browser-d5ad84aa125280e86c5ae3c3cec5a0f73dfb35fe.zip |
Wrote fix for eth.sign
Diffstat (limited to 'app')
-rw-r--r-- | app/scripts/keyrings/simple.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/app/scripts/keyrings/simple.js b/app/scripts/keyrings/simple.js index 6b16137ae..d604430b8 100644 --- a/app/scripts/keyrings/simple.js +++ b/app/scripts/keyrings/simple.js @@ -54,8 +54,7 @@ class SimpleKeyring 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)) |