| 646 | } |
| 647 | |
| 648 | struct command_result *param_channel_id(struct command *cmd, const char *name, |
| 649 | const char *buffer, const jsmntok_t *tok, |
| 650 | struct channel_id **cid) |
| 651 | { |
| 652 | *cid = tal(cmd, struct channel_id); |
| 653 | if (json_to_channel_id(buffer, tok, *cid)) |
| 654 | return NULL; |
| 655 | |
| 656 | return command_fail_badparam(cmd, name, buffer, tok, |
| 657 | "should be a channel id"); |
| 658 | } |
| 659 | |
| 660 | struct command_result *param_short_channel_id(struct command *cmd, |
| 661 | const char *name, |
no test coverage detected