| 574 | } |
| 575 | |
| 576 | struct command_result *param_u64(struct command *cmd, const char *name, |
| 577 | const char *buffer, const jsmntok_t *tok, |
| 578 | uint64_t **num) |
| 579 | { |
| 580 | *num = tal(cmd, uint64_t); |
| 581 | if (json_to_u64(buffer, tok, *num)) |
| 582 | return NULL; |
| 583 | |
| 584 | return command_fail_badparam(cmd, name, buffer, tok, |
| 585 | "should be an unsigned 64 bit integer"); |
| 586 | } |
| 587 | |
| 588 | struct command_result *param_s64(struct command *cmd, const char *name, |
| 589 | const char *buffer, const jsmntok_t *tok, |
no test coverage detected