TxBuilder: pass network through fromTransaction, fixes failing tests

This commit is contained in:
Daniel Cousens 2015-08-07 16:55:13 +10:00
parent 1e90e1620a
commit a4eb58f103
2 changed files with 29 additions and 25 deletions

View file

@ -95,7 +95,7 @@ function TransactionBuilder (network) {
}
TransactionBuilder.fromTransaction = function (transaction, network) {
var txb = new TransactionBuilder(/* remove after failing test added: network*/)
var txb = new TransactionBuilder(network)
// Copy other transaction fields
txb.tx.version = transaction.version