| 266 | } |
| 267 | |
| 268 | const u8 *wally_tx_output_get_script(const tal_t *ctx, |
| 269 | const struct wally_tx_output *output) |
| 270 | { |
| 271 | if (output->script == NULL) { |
| 272 | /* This can happen for coinbase transactions and pegin |
| 273 | * transactions */ |
| 274 | return NULL; |
| 275 | } |
| 276 | |
| 277 | return tal_dup_arr(ctx, u8, output->script, output->script_len, 0); |
| 278 | } |
| 279 | |
| 280 | const u8 *bitcoin_tx_output_get_script(const tal_t *ctx, |
| 281 | const struct bitcoin_tx *tx, int outnum) |
no outgoing calls
no test coverage detected