| 279 | } |
| 280 | |
| 281 | struct wally_psbt_output *psbt_insert_output(struct wally_psbt *psbt, |
| 282 | const u8 *script, |
| 283 | struct amount_sat amount, |
| 284 | size_t insert_at) |
| 285 | { |
| 286 | struct wally_psbt_output *out; |
| 287 | struct wally_tx_output *tx_out = wally_tx_output(NULL, script, amount); |
| 288 | |
| 289 | out = psbt_add_output(psbt, tx_out, insert_at); |
| 290 | wally_tx_output_free(tx_out); |
| 291 | return out; |
| 292 | } |
| 293 | |
| 294 | void psbt_rm_output(struct wally_psbt *psbt, |
| 295 | size_t remove_at) |
no test coverage detected