| 610 | } |
| 611 | |
| 612 | struct command_result *param_sat(struct command *cmd, const char *name, |
| 613 | const char *buffer, const jsmntok_t *tok, |
| 614 | struct amount_sat **sat) |
| 615 | { |
| 616 | *sat = tal(cmd, struct amount_sat); |
| 617 | if (parse_amount_sat(*sat, buffer + tok->start, tok->end - tok->start)) |
| 618 | return NULL; |
| 619 | |
| 620 | return command_fail_badparam(cmd, name, buffer, tok, |
| 621 | "should be a satoshi amount"); |
| 622 | } |
| 623 | |
| 624 | struct command_result *param_sat_or_all(struct command *cmd, const char *name, |
| 625 | const char *buffer, const jsmntok_t *tok, |
no test coverage detected