| 562 | } |
| 563 | |
| 564 | struct command_result *param_u32(struct command *cmd, const char *name, |
| 565 | const char *buffer, const jsmntok_t *tok, |
| 566 | uint32_t **num) |
| 567 | { |
| 568 | *num = tal(cmd, uint32_t); |
| 569 | if (json_to_u32(buffer, tok, *num)) |
| 570 | return NULL; |
| 571 | |
| 572 | return command_fail_badparam(cmd, name, buffer, tok, |
| 573 | "should be an unsigned 32 bit integer"); |
| 574 | } |
| 575 | |
| 576 | struct command_result *param_u64(struct command *cmd, const char *name, |
| 577 | const char *buffer, const jsmntok_t *tok, |
nothing calls this directly
no test coverage detected