| 524 | } |
| 525 | |
| 526 | struct command_result *param_number(struct command *cmd, const char *name, |
| 527 | const char *buffer, const jsmntok_t *tok, |
| 528 | unsigned int **num) |
| 529 | { |
| 530 | *num = tal(cmd, unsigned int); |
| 531 | if (json_to_number(buffer, tok, *num)) |
| 532 | return NULL; |
| 533 | |
| 534 | return command_fail_badparam(cmd, name, buffer, tok, |
| 535 | "should be an integer"); |
| 536 | } |
| 537 | |
| 538 | struct command_result *param_sha256(struct command *cmd, const char *name, |
| 539 | const char *buffer, const jsmntok_t *tok, |
no test coverage detected