1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

Fix signing bug

This commit is contained in:
Dan Finlay 2016-03-29 12:50:47 -07:00
parent d6dee7e748
commit 9bdc169712

View File

@ -285,7 +285,7 @@ function IdManagement(opts) {
this.keyStore = opts.keyStore this.keyStore = opts.keyStore
this.derivedKey = opts.derivedKey this.derivedKey = opts.derivedKey
this.hdPathString = opts.hdPathString this.hdPathString = "m/44'/60'/0'/0"
this.getAddresses = function(){ this.getAddresses = function(){
return keyStore.getAddresses(this.hdPathString).map(function(address){ return '0x'+address }) return keyStore.getAddresses(this.hdPathString).map(function(address){ return '0x'+address })
@ -301,7 +301,7 @@ function IdManagement(opts) {
txParams.nonce = ethUtil.addHexPrefix(txParams.nonce) txParams.nonce = ethUtil.addHexPrefix(txParams.nonce)
var tx = new Transaction(txParams) var tx = new Transaction(txParams)
var rawTx = '0x'+tx.serialize().toString('hex') var rawTx = '0x'+tx.serialize().toString('hex')
return '0x'+LightwalletSigner.signTx(this.keyStore, this.derivedKey, rawTx, txParams.from) return '0x'+LightwalletSigner.signTx(this.keyStore, this.derivedKey, rawTx, txParams.from, this.hdPathString)
} }
this.getSeed = function(){ this.getSeed = function(){