Fix tests to use new sign method
This commit is contained in:
parent
17f5f35569
commit
969b3a5e18
9 changed files with 744 additions and 164 deletions
test/integration
|
@ -92,7 +92,11 @@ async function faucetComplex (output, value) {
|
|||
const txvb = new bitcoin.TransactionBuilder(NETWORK)
|
||||
txvb.addInput(unspent.txId, unspent.vout, null, p2pkh.output)
|
||||
txvb.addOutput(output, value)
|
||||
txvb.sign(0, keyPair)
|
||||
txvb.sign({
|
||||
prevOutScriptType: 'p2pkh',
|
||||
vin: 0,
|
||||
keyPair
|
||||
})
|
||||
const txv = txvb.build()
|
||||
|
||||
await broadcast(txv.toHex())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue