| 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, |
| 218 | size_t insert_at) |
| 219 | { |
| 220 | struct wally_psbt_output *out; |
| 221 | struct wally_tx_output *tx_out = wally_tx_output(NULL, script, amount); |
| 222 | |
| 223 | out = psbt_add_output(psbt, tx_out, insert_at); |
| 224 | wally_tx_output_free(tx_out); |
| 225 | return out; |
| 226 | } |
| 227 | |
| 228 | void psbt_rm_output(struct wally_psbt *psbt, |
| 229 | size_t remove_at) |
no test coverage detected