Browse Source

Use output for faucetComplex

psbt-tx-getters
junderw 6 years ago
parent
commit
4e8aecb5e0
No known key found for this signature in database GPG Key ID: B256185D3A971908
  1. 4
      test/integration/transactions.js

4
test/integration/transactions.js

@ -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…
Cancel
Save