TxBuilder: pass network through to fromTransaction

This commit is contained in:
Daniel Cousens 2015-08-07 16:41:24 +10:00
parent cdce4b6189
commit 2971816588
2 changed files with 8 additions and 5 deletions

View file

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