Merge pull request #626 from bitcoinjs/clean

TransactionBuilder: remove unused variables
This commit is contained in:
Daniel Cousens 2016-09-26 16:41:01 +10:00 committed by GitHub
commit 96f55a2ca4
2 changed files with 4 additions and 6 deletions

View file

@ -140,8 +140,6 @@ function extractInput (transaction, txIn, vin) {
function TransactionBuilder (network) { function TransactionBuilder (network) {
this.prevTxMap = {} this.prevTxMap = {}
this.prevOutScripts = {}
this.prevOutTypes = {}
this.network = network || networks.bitcoin this.network = network || networks.bitcoin
this.inputs = [] this.inputs = []

View file

@ -7,13 +7,13 @@ var typeforce = require('typeforce')
describe('types', function () { describe('types', function () {
describe('BigInt/ECPoint', function () { describe('BigInt/ECPoint', function () {
it('return true for duck types', function () { it('return true for duck types', function () {
assert(types.BigInt(new function BigInteger () {})) assert(types.BigInt(new function BigInteger () {}()))
assert(types.ECPoint(new function Point () {})) assert(types.ECPoint(new function Point () {}()))
}) })
it('return false for bad types', function () { it('return false for bad types', function () {
assert(!types.BigInt(new function NotABigInteger () {})) assert(!types.BigInt(new function NotABigInteger () {}()))
assert(!types.ECPoint(new function NotAPoint () {})) assert(!types.ECPoint(new function NotAPoint () {}()))
}) })
}) })