Browse Source

remove redundant baddress.toOutputScript call from tests

hk-custom-address
Thomas Kerin 8 years ago
committed by Daniel Cousens
parent
commit
912f5d4d03
  1. 8
      test/transaction_builder.js

8
test/transaction_builder.js

@ -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()
})

Loading…
Cancel
Save