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