| 510 | } |
| 511 | |
| 512 | struct command_result *param_msat(struct command *cmd, const char *name, |
| 513 | const char *buffer, const jsmntok_t *tok, |
| 514 | struct amount_msat **msat) |
| 515 | { |
| 516 | *msat = tal(cmd, struct amount_msat); |
| 517 | if (parse_amount_msat(*msat, buffer + tok->start, tok->end - tok->start)) |
| 518 | return NULL; |
| 519 | |
| 520 | return command_fail_badparam(cmd, name, buffer, tok, |
| 521 | "should be a millisatoshi amount"); |
| 522 | } |
| 523 | |
| 524 | struct command_result *param_sat(struct command *cmd, const char *name, |
| 525 | const char *buffer, const jsmntok_t *tok, |
nothing calls this directly
no test coverage detected