@@ -362,7 +362,7 @@ describe('TransactionBuilder', function () {
362362 var randomTx = Transaction . fromHex ( randomTxData )
363363 var tx = new TransactionBuilder ( )
364364 tx . addInput ( randomTx , 0 )
365- tx . addOutput ( baddress . toOutputScript ( randomAddress ) , 1000 )
365+ tx . addOutput ( randomAddress , 1000 )
366366 tx = tx . buildIncomplete ( )
367367 assert ( tx )
368368 } )
@@ -373,7 +373,7 @@ describe('TransactionBuilder', function () {
373373
374374 var txb = new TransactionBuilder ( NETWORKS . testnet )
375375 txb . addInput ( inpTx , 0 )
376- txb . addOutput ( baddress . toOutputScript ( '2NAkqp5xffoomp5RLBcakuGpZ12GU4twdz4' , NETWORKS . testnet ) , 1e8 ) // arbitrary output
376+ txb . addOutput ( '2NAkqp5xffoomp5RLBcakuGpZ12GU4twdz4' , 1e8 ) // arbitrary output
377377
378378 txb . buildIncomplete ( )
379379 } )
@@ -384,7 +384,7 @@ describe('TransactionBuilder', function () {
384384
385385 var txb = new TransactionBuilder ( NETWORKS . testnet )
386386 txb . addInput ( inpTx , 0 )
387- txb . addOutput ( baddress . toOutputScript ( '2NAkqp5xffoomp5RLBcakuGpZ12GU4twdz4' , NETWORKS . testnet ) , 1e8 ) // arbitrary output
387+ txb . addOutput ( '2NAkqp5xffoomp5RLBcakuGpZ12GU4twdz4' , 1e8 ) // arbitrary output
388388
389389 txb . buildIncomplete ( )
390390 } )
@@ -394,7 +394,7 @@ describe('TransactionBuilder', function () {
394394
395395 var txb = new TransactionBuilder ( NETWORKS . testnet )
396396 txb . addInput ( inpTx , 0 )
397- txb . addOutput ( baddress . toOutputScript ( '2NAkqp5xffoomp5RLBcakuGpZ12GU4twdz4' , NETWORKS . testnet ) , 1e8 ) // arbitrary output
397+ txb . addOutput ( '2NAkqp5xffoomp5RLBcakuGpZ12GU4twdz4' , 1e8 ) // arbitrary output
398398
399399 txb . buildIncomplete ( )
400400 } )
0 commit comments