Skip to content

Commit 4e8aecb

Browse files
committed
Use output for faucetComplex
1 parent a3b6cda commit 4e8aecb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/integration/transactions.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ describe('bitcoinjs-lib (transactions)', () => {
193193
const keyPair = bitcoin.ECPair.makeRandom({ network: regtest })
194194
const p2wpkh = bitcoin.payments.p2wpkh({ pubkey: keyPair.publicKey, network: regtest })
195195

196-
const unspent = await regtestUtils.faucetComplex(p2wpkh.address, 5e4)
196+
const unspent = await regtestUtils.faucetComplex(p2wpkh.output, 5e4)
197197

198198
// XXX: build the Transaction w/ a P2WPKH input
199199
const txb = new bitcoin.TransactionBuilder(regtest)
@@ -223,7 +223,7 @@ describe('bitcoinjs-lib (transactions)', () => {
223223
const p2pk = bitcoin.payments.p2pk({ pubkey: keyPair.publicKey, network: regtest })
224224
const p2wsh = bitcoin.payments.p2wsh({ redeem: p2pk, network: regtest })
225225

226-
const unspent = await regtestUtils.faucetComplex(p2wsh.address, 5e4)
226+
const unspent = await regtestUtils.faucetComplex(p2wsh.output, 5e4)
227227

228228
// XXX: build the Transaction w/ a P2WSH input
229229
const txb = new bitcoin.TransactionBuilder(regtest)

0 commit comments

Comments
 (0)