| 522 | } |
| 523 | |
| 524 | struct command_result *param_sat(struct command *cmd, const char *name, |
| 525 | const char *buffer, const jsmntok_t *tok, |
| 526 | struct amount_sat **sat) |
| 527 | { |
| 528 | *sat = tal(cmd, struct amount_sat); |
| 529 | if (parse_amount_sat(*sat, buffer + tok->start, tok->end - tok->start)) |
| 530 | return NULL; |
| 531 | |
| 532 | return command_fail_badparam(cmd, name, buffer, tok, |
| 533 | "should be a satoshi amount"); |
| 534 | } |
| 535 | |
| 536 | struct command_result *param_sat_or_all(struct command *cmd, const char *name, |
| 537 | const char *buffer, const jsmntok_t *tok, |
no test coverage detected