| 486 | } |
| 487 | |
| 488 | struct command_result *param_u32(struct command *cmd, const char *name, |
| 489 | const char *buffer, const jsmntok_t *tok, |
| 490 | uint32_t **num) |
| 491 | { |
| 492 | *num = tal(cmd, uint32_t); |
| 493 | if (json_to_u32(buffer, tok, *num)) |
| 494 | return NULL; |
| 495 | |
| 496 | return command_fail_badparam(cmd, name, buffer, tok, |
| 497 | "should be an unsigned 32 bit integer"); |
| 498 | } |
| 499 | |
| 500 | struct command_result *param_u64(struct command *cmd, const char *name, |
| 501 | const char *buffer, const jsmntok_t *tok, |
nothing calls this directly
no test coverage detected