| 1052 | } |
| 1053 | |
| 1054 | const u8 *wally_psbt_output_get_script(const tal_t *ctx, |
| 1055 | const struct wally_psbt_output *output) |
| 1056 | { |
| 1057 | if (output->script == NULL) { |
| 1058 | /* This can happen for coinbase transactions, pegin |
| 1059 | * transactions, and elements fee outputs */ |
| 1060 | return NULL; |
| 1061 | } |
| 1062 | |
| 1063 | return tal_dup_arr(ctx, u8, output->script, output->script_len, 0); |
| 1064 | } |
| 1065 | |
| 1066 | /* FIXME(cdecker) Make the caller pass in a reference to amount_asset, and |
| 1067 | * return false if unintelligible/encrypted. (WARN UNUSED). */ |
no outgoing calls
no test coverage detected