| 278 | } |
| 279 | |
| 280 | const u8 *bitcoin_tx_output_get_script(const tal_t *ctx, |
| 281 | const struct bitcoin_tx *tx, int outnum) |
| 282 | { |
| 283 | const struct wally_tx_output *output; |
| 284 | assert(outnum < tx->wtx->num_outputs); |
| 285 | output = &tx->wtx->outputs[outnum]; |
| 286 | |
| 287 | return wally_tx_output_get_script(ctx, output); |
| 288 | } |
| 289 | |
| 290 | u8 *bitcoin_tx_output_get_witscript(const tal_t *ctx, const struct bitcoin_tx *tx, |
| 291 | int outnum) |
no test coverage detected