remove redundant baddress.toOutputScript call from tests

This commit is contained in:
Thomas Kerin 2017-08-07 15:09:37 +02:00 committed by Daniel Cousens
parent 0b1c3bfbd9
commit 912f5d4d03

View file

@ -362,7 +362,7 @@ describe('TransactionBuilder', function () {
var randomTx = Transaction.fromHex(randomTxData)
var tx = new TransactionBuilder()
tx.addInput(randomTx, 0)
tx.addOutput(baddress.toOutputScript(randomAddress), 1000)
tx.addOutput(randomAddress, 1000)
tx = tx.buildIncomplete()
assert(tx)
})
@ -373,7 +373,7 @@ describe('TransactionBuilder', function () {
var txb = new TransactionBuilder(NETWORKS.testnet)
txb.addInput(inpTx, 0)
txb.addOutput(baddress.toOutputScript('2NAkqp5xffoomp5RLBcakuGpZ12GU4twdz4', NETWORKS.testnet), 1e8) // arbitrary output
txb.addOutput('2NAkqp5xffoomp5RLBcakuGpZ12GU4twdz4', 1e8) // arbitrary output
txb.buildIncomplete()
})
@ -384,7 +384,7 @@ describe('TransactionBuilder', function () {
var txb = new TransactionBuilder(NETWORKS.testnet)
txb.addInput(inpTx, 0)
txb.addOutput(baddress.toOutputScript('2NAkqp5xffoomp5RLBcakuGpZ12GU4twdz4', NETWORKS.testnet), 1e8) // arbitrary output
txb.addOutput('2NAkqp5xffoomp5RLBcakuGpZ12GU4twdz4', 1e8) // arbitrary output
txb.buildIncomplete()
})
@ -394,7 +394,7 @@ describe('TransactionBuilder', function () {
var txb = new TransactionBuilder(NETWORKS.testnet)
txb.addInput(inpTx, 0)
txb.addOutput(baddress.toOutputScript('2NAkqp5xffoomp5RLBcakuGpZ12GU4twdz4', NETWORKS.testnet), 1e8) // arbitrary output
txb.addOutput('2NAkqp5xffoomp5RLBcakuGpZ12GU4twdz4', 1e8) // arbitrary output
txb.buildIncomplete()
})