| 598 | } |
| 599 | |
| 600 | struct command_result *param_msat(struct command *cmd, const char *name, |
| 601 | const char *buffer, const jsmntok_t *tok, |
| 602 | struct amount_msat **msat) |
| 603 | { |
| 604 | *msat = tal(cmd, struct amount_msat); |
| 605 | if (parse_amount_msat(*msat, buffer + tok->start, tok->end - tok->start)) |
| 606 | return NULL; |
| 607 | |
| 608 | return command_fail_badparam(cmd, name, buffer, tok, |
| 609 | "should be a millisatoshi amount"); |
| 610 | } |
| 611 | |
| 612 | struct command_result *param_sat(struct command *cmd, const char *name, |
| 613 | const char *buffer, const jsmntok_t *tok, |
no test coverage detected