TxBuilder: copy version/locktime in fromTransaction

This commit is contained in:
Daniel Cousens 2015-01-23 16:35:09 +11:00
parent 510212a3bd
commit a529b3fa0b
3 changed files with 31 additions and 0 deletions

View file

@ -196,6 +196,10 @@ describe('TransactionBuilder', function() {
})
})
// 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
var tx = txb.build()
assert.equal(tx.getId(), f.txid)