| 27 | } |
| 28 | |
| 29 | static struct command_result *param_msat_or_any(struct command *cmd, |
| 30 | const char *name, |
| 31 | const char *buffer, |
| 32 | const jsmntok_t *tok, |
| 33 | struct tlv_offer *offer) |
| 34 | { |
| 35 | if (msat_or_any(buffer, tok, offer)) |
| 36 | return NULL; |
| 37 | return command_fail_badparam(cmd, name, buffer, tok, |
| 38 | "should be 'any' or msatoshis"); |
| 39 | } |
| 40 | |
| 41 | static struct command_result *param_amount(struct command *cmd, |
| 42 | const char *name, |
nothing calls this directly
no test coverage detected