|
@ -178,7 +178,7 @@ struct wally_psbt_output *psbt_append_output(struct wally_psbt *psbt, |
|
|
struct amount_sat amount) |
|
|
struct amount_sat amount) |
|
|
{ |
|
|
{ |
|
|
struct wally_psbt_output *out; |
|
|
struct wally_psbt_output *out; |
|
|
struct wally_tx_output *tx_out = wally_tx_output(script, amount); |
|
|
struct wally_tx_output *tx_out = wally_tx_output(NULL, script, amount); |
|
|
|
|
|
|
|
|
out = psbt_add_output(psbt, tx_out, psbt->tx->num_outputs); |
|
|
out = psbt_add_output(psbt, tx_out, psbt->tx->num_outputs); |
|
|
wally_tx_output_free(tx_out); |
|
|
wally_tx_output_free(tx_out); |
|
@ -190,7 +190,7 @@ struct wally_psbt_output *psbt_insert_output(struct wally_psbt *psbt, |
|
|
size_t insert_at) |
|
|
size_t insert_at) |
|
|
{ |
|
|
{ |
|
|
struct wally_psbt_output *out; |
|
|
struct wally_psbt_output *out; |
|
|
struct wally_tx_output *tx_out = wally_tx_output(script, amount); |
|
|
struct wally_tx_output *tx_out = wally_tx_output(NULL, script, amount); |
|
|
|
|
|
|
|
|
out = psbt_add_output(psbt, tx_out, insert_at); |
|
|
out = psbt_add_output(psbt, tx_out, insert_at); |
|
|
wally_tx_output_free(tx_out); |
|
|
wally_tx_output_free(tx_out); |
|
|