Fix tests to use new sign method

This commit is contained in:
junderw 2019-06-13 13:07:00 +09:00
parent 17f5f35569
commit 969b3a5e18
No known key found for this signature in database
GPG key ID: B256185D3A971908
9 changed files with 744 additions and 164 deletions
test/integration

View file

@ -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())