| 202 | } |
| 203 | |
| 204 | struct wally_psbt_output *psbt_append_output(struct wally_psbt *psbt, |
| 205 | const u8 *script, |
| 206 | struct amount_sat amount) |
| 207 | { |
| 208 | struct wally_psbt_output *out; |
| 209 | struct wally_tx_output *tx_out = wally_tx_output(NULL, script, amount); |
| 210 | |
| 211 | out = psbt_add_output(psbt, tx_out, psbt->tx->num_outputs); |
| 212 | wally_tx_output_free(tx_out); |
| 213 | return out; |
| 214 | } |
| 215 | struct wally_psbt_output *psbt_insert_output(struct wally_psbt *psbt, |
| 216 | const u8 *script, |
| 217 | struct amount_sat amount, |