| 586 | } |
| 587 | |
| 588 | struct command_result *param_s64(struct command *cmd, const char *name, |
| 589 | const char *buffer, const jsmntok_t *tok, |
| 590 | int64_t **num) |
| 591 | { |
| 592 | *num = tal(cmd, int64_t); |
| 593 | if (json_to_s64(buffer, tok, *num)) |
| 594 | return NULL; |
| 595 | |
| 596 | return command_fail_badparam(cmd, name, buffer, tok, |
| 597 | "should be an sign 64 bit integer"); |
| 598 | } |
| 599 | |
| 600 | struct command_result *param_msat(struct command *cmd, const char *name, |
| 601 | const char *buffer, const jsmntok_t *tok, |
nothing calls this directly
no test coverage detected