Use output for faucetComplex
This commit is contained in:
parent
a3b6cdabb9
commit
4e8aecb5e0
1 changed files with 2 additions and 2 deletions
|
@ -193,7 +193,7 @@ describe('bitcoinjs-lib (transactions)', () => {
|
|||
const keyPair = bitcoin.ECPair.makeRandom({ network: regtest })
|
||||
const p2wpkh = bitcoin.payments.p2wpkh({ pubkey: keyPair.publicKey, network: regtest })
|
||||
|
||||
const unspent = await regtestUtils.faucetComplex(p2wpkh.address, 5e4)
|
||||
const unspent = await regtestUtils.faucetComplex(p2wpkh.output, 5e4)
|
||||
|
||||
// XXX: build the Transaction w/ a P2WPKH input
|
||||
const txb = new bitcoin.TransactionBuilder(regtest)
|
||||
|
@ -223,7 +223,7 @@ describe('bitcoinjs-lib (transactions)', () => {
|
|||
const p2pk = bitcoin.payments.p2pk({ pubkey: keyPair.publicKey, network: regtest })
|
||||
const p2wsh = bitcoin.payments.p2wsh({ redeem: p2pk, network: regtest })
|
||||
|
||||
const unspent = await regtestUtils.faucetComplex(p2wsh.address, 5e4)
|
||||
const unspent = await regtestUtils.faucetComplex(p2wsh.output, 5e4)
|
||||
|
||||
// XXX: build the Transaction w/ a P2WSH input
|
||||
const txb = new bitcoin.TransactionBuilder(regtest)
|
||||
|
|
Loading…
Reference in a new issue