| 658 | } |
| 659 | |
| 660 | struct command_result *param_short_channel_id(struct command *cmd, |
| 661 | const char *name, |
| 662 | const char *buffer, |
| 663 | const jsmntok_t *tok, |
| 664 | struct short_channel_id **scid) |
| 665 | { |
| 666 | *scid = tal(cmd, struct short_channel_id); |
| 667 | if (json_to_short_channel_id(buffer, tok, *scid)) |
| 668 | return NULL; |
| 669 | |
| 670 | return command_fail_badparam(cmd, name, buffer, tok, |
| 671 | "should be a short_channel_id of form NxNxN"); |
| 672 | } |
| 673 | |
| 674 | struct command_result *param_short_channel_id_dir(struct command *cmd, |
| 675 | const char *name, |
no test coverage detected