TxBuilder: pass network through to fromTransaction
This commit is contained in:
parent
cdce4b6189
commit
2971816588
2 changed files with 8 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue