remove redundant baddress.toOutputScript call from tests
This commit is contained in:
parent
0b1c3bfbd9
commit
912f5d4d03
1 changed files with 4 additions and 4 deletions
|
@ -362,7 +362,7 @@ describe('TransactionBuilder', function () {
|
||||||
var randomTx = Transaction.fromHex(randomTxData)
|
var randomTx = Transaction.fromHex(randomTxData)
|
||||||
var tx = new TransactionBuilder()
|
var tx = new TransactionBuilder()
|
||||||
tx.addInput(randomTx, 0)
|
tx.addInput(randomTx, 0)
|
||||||
tx.addOutput(baddress.toOutputScript(randomAddress), 1000)
|
tx.addOutput(randomAddress, 1000)
|
||||||
tx = tx.buildIncomplete()
|
tx = tx.buildIncomplete()
|
||||||
assert(tx)
|
assert(tx)
|
||||||
})
|
})
|
||||||
|
@ -373,7 +373,7 @@ describe('TransactionBuilder', function () {
|
||||||
|
|
||||||
var txb = new TransactionBuilder(NETWORKS.testnet)
|
var txb = new TransactionBuilder(NETWORKS.testnet)
|
||||||
txb.addInput(inpTx, 0)
|
txb.addInput(inpTx, 0)
|
||||||
txb.addOutput(baddress.toOutputScript('2NAkqp5xffoomp5RLBcakuGpZ12GU4twdz4', NETWORKS.testnet), 1e8) // arbitrary output
|
txb.addOutput('2NAkqp5xffoomp5RLBcakuGpZ12GU4twdz4', 1e8) // arbitrary output
|
||||||
|
|
||||||
txb.buildIncomplete()
|
txb.buildIncomplete()
|
||||||
})
|
})
|
||||||
|
@ -384,7 +384,7 @@ describe('TransactionBuilder', function () {
|
||||||
|
|
||||||
var txb = new TransactionBuilder(NETWORKS.testnet)
|
var txb = new TransactionBuilder(NETWORKS.testnet)
|
||||||
txb.addInput(inpTx, 0)
|
txb.addInput(inpTx, 0)
|
||||||
txb.addOutput(baddress.toOutputScript('2NAkqp5xffoomp5RLBcakuGpZ12GU4twdz4', NETWORKS.testnet), 1e8) // arbitrary output
|
txb.addOutput('2NAkqp5xffoomp5RLBcakuGpZ12GU4twdz4', 1e8) // arbitrary output
|
||||||
|
|
||||||
txb.buildIncomplete()
|
txb.buildIncomplete()
|
||||||
})
|
})
|
||||||
|
@ -394,7 +394,7 @@ describe('TransactionBuilder', function () {
|
||||||
|
|
||||||
var txb = new TransactionBuilder(NETWORKS.testnet)
|
var txb = new TransactionBuilder(NETWORKS.testnet)
|
||||||
txb.addInput(inpTx, 0)
|
txb.addInput(inpTx, 0)
|
||||||
txb.addOutput(baddress.toOutputScript('2NAkqp5xffoomp5RLBcakuGpZ12GU4twdz4', NETWORKS.testnet), 1e8) // arbitrary output
|
txb.addOutput('2NAkqp5xffoomp5RLBcakuGpZ12GU4twdz4', 1e8) // arbitrary output
|
||||||
|
|
||||||
txb.buildIncomplete()
|
txb.buildIncomplete()
|
||||||
})
|
})
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue