fix build transaction method in ledger service
This commit is contained in:
parent
4aa4d9f769
commit
c876d5e29d
1 changed files with 3 additions and 3 deletions
|
|
@ -57,7 +57,7 @@ angular.module('copayApp.services')
|
||||||
root.callbacks["sign_p2sh"] = callback;
|
root.callbacks["sign_p2sh"] = callback;
|
||||||
var redeemScripts = [];
|
var redeemScripts = [];
|
||||||
var paths = [];
|
var paths = [];
|
||||||
var tx = bwcService.buildTx(txp);
|
var tx = bwcService.getUtils().buildTx(txp);
|
||||||
for (var i = 0; i < tx.inputs.length; i++) {
|
for (var i = 0; i < tx.inputs.length; i++) {
|
||||||
redeemScripts.push(new ByteString(tx.inputs[i].redeemScript.toBuffer().toString('hex'), GP.HEX).toString());
|
redeemScripts.push(new ByteString(tx.inputs[i].redeemScript.toBuffer().toString('hex'), GP.HEX).toString());
|
||||||
paths.push(hwWallet.getAddressPath('ledger', isMultisig, account) + txp.inputs[i].path.substring(1));
|
paths.push(hwWallet.getAddressPath('ledger', isMultisig, account) + txp.inputs[i].path.substring(1));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue