From 61718cdbaa97a89a008a44e164b7368c962cb8ba Mon Sep 17 00:00:00 2001 From: Daniel Cousens Date: Mon, 26 Sep 2016 15:34:10 +1000 Subject: [PATCH 1/2] txb: remove unused variables --- src/transaction_builder.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/transaction_builder.js b/src/transaction_builder.js index 5384745..9a3c566 100644 --- a/src/transaction_builder.js +++ b/src/transaction_builder.js @@ -140,8 +140,6 @@ function extractInput (transaction, txIn, vin) { function TransactionBuilder (network) { this.prevTxMap = {} - this.prevOutScripts = {} - this.prevOutTypes = {} this.network = network || networks.bitcoin this.inputs = [] From fd0be5e5b8910c52a1f14a724e82d8427aebc7ab Mon Sep 17 00:00:00 2001 From: Daniel Cousens Date: Mon, 26 Sep 2016 16:32:16 +1000 Subject: [PATCH 2/2] tests: add missing parenthesis --- test/types.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/types.js b/test/types.js index 358f7dd..03634e6 100644 --- a/test/types.js +++ b/test/types.js @@ -7,13 +7,13 @@ var typeforce = require('typeforce') describe('types', function () { describe('BigInt/ECPoint', function () { it('return true for duck types', function () { - assert(types.BigInt(new function BigInteger () {})) - assert(types.ECPoint(new function Point () {})) + assert(types.BigInt(new function BigInteger () {}())) + assert(types.ECPoint(new function Point () {}())) }) it('return false for bad types', function () { - assert(!types.BigInt(new function NotABigInteger () {})) - assert(!types.ECPoint(new function NotAPoint () {})) + assert(!types.BigInt(new function NotABigInteger () {}())) + assert(!types.ECPoint(new function NotAPoint () {}())) }) })