From c3c98709e256137b81b92abd27f5fa52f8925b48 Mon Sep 17 00:00:00 2001 From: Wesley Smith Date: Sun, 6 May 2018 22:40:27 -0700 Subject: [PATCH] fixes adding version field to transaction instance --- src/transaction_builder.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/transaction_builder.js b/src/transaction_builder.js index 51bc396..4574831 100644 --- a/src/transaction_builder.js +++ b/src/transaction_builder.js @@ -476,7 +476,7 @@ function TransactionBuilder (network, maximumFeeRate) { this.__inputs = [] this.__tx = new Transaction() - this.tx.version = 2 + this.__tx.version = 2 } TransactionBuilder.prototype.setLockTime = function (locktime) {