|
|
@ -17,6 +17,15 @@ function construct (f, sign) { |
|
|
|
var network = NETWORKS[f.network] |
|
|
|
var txb = new TransactionBuilder(network) |
|
|
|
|
|
|
|
// FIXME: add support for locktime/version in TransactionBuilder API
|
|
|
|
if (f.version !== undefined) { |
|
|
|
txb.tx.version = f.version |
|
|
|
} |
|
|
|
|
|
|
|
if (f.locktime !== undefined) { |
|
|
|
txb.tx.locktime = f.locktime |
|
|
|
} |
|
|
|
|
|
|
|
f.inputs.forEach(function (input) { |
|
|
|
var prevTxScript |
|
|
|
|
|
|
@ -46,15 +55,6 @@ function construct (f, sign) { |
|
|
|
}) |
|
|
|
} |
|
|
|
|
|
|
|
// FIXME: add support for locktime/version in TransactionBuilder API
|
|
|
|
if (f.version !== undefined) { |
|
|
|
txb.tx.version = f.version |
|
|
|
} |
|
|
|
|
|
|
|
if (f.locktime !== undefined) { |
|
|
|
txb.tx.locktime = f.locktime |
|
|
|
} |
|
|
|
|
|
|
|
return txb |
|
|
|
} |
|
|
|
|
|
|
|