| 354 | } |
| 355 | |
| 356 | static struct command_result *currency_done(struct command *cmd, |
| 357 | const char *method, |
| 358 | const char *buf, |
| 359 | const jsmntok_t *result, |
| 360 | struct offer_info *offinfo) |
| 361 | { |
| 362 | /* Fail in this case, by forwarding warnings. */ |
| 363 | if (!json_get_member(buf, result, "msat")) |
| 364 | return forward_error(cmd, method, buf, result, offinfo); |
| 365 | |
| 366 | return maybe_add_path(cmd, offinfo); |
| 367 | } |
| 368 | |
| 369 | static bool json_to_sciddir_or_pubkey(const char *buffer, const jsmntok_t *tok, |
| 370 | struct sciddir_or_pubkey *sciddir_or_pubkey) |
nothing calls this directly
no test coverage detected