| 886 | } |
| 887 | |
| 888 | struct command_result *param_txid(struct command *cmd, |
| 889 | const char *name, |
| 890 | const char *buffer, |
| 891 | const jsmntok_t *tok, |
| 892 | struct bitcoin_txid **txid) |
| 893 | { |
| 894 | *txid = tal(cmd, struct bitcoin_txid); |
| 895 | if (json_to_txid(buffer, tok, *txid)) |
| 896 | return NULL; |
| 897 | return command_fail_badparam(cmd, name, buffer, tok, |
| 898 | "should be a txid"); |
| 899 | } |
| 900 | |
| 901 | struct command_result *param_outpoint(struct command *cmd, |
| 902 | const char *name, |
no test coverage detected