| 498 | } |
| 499 | |
| 500 | struct command_result *param_u64(struct command *cmd, const char *name, |
| 501 | const char *buffer, const jsmntok_t *tok, |
| 502 | uint64_t **num) |
| 503 | { |
| 504 | *num = tal(cmd, uint64_t); |
| 505 | if (json_to_u64(buffer, tok, *num)) |
| 506 | return NULL; |
| 507 | |
| 508 | return command_fail_badparam(cmd, name, buffer, tok, |
| 509 | "should be an unsigned 64 bit integer"); |
| 510 | } |
| 511 | |
| 512 | struct command_result *param_msat(struct command *cmd, const char *name, |
| 513 | const char *buffer, const jsmntok_t *tok, |
no test coverage detected