| 301 | } |
| 302 | |
| 303 | static struct command_result *currency_done(struct command *cmd, |
| 304 | const char *buf, |
| 305 | const jsmntok_t *result, |
| 306 | struct offer_info *offinfo) |
| 307 | { |
| 308 | /* Fail in this case, by forwarding warnings. */ |
| 309 | if (!json_get_member(buf, result, "msat")) |
| 310 | return forward_error(cmd, buf, result, offinfo); |
| 311 | |
| 312 | return create_offer(cmd, offinfo); |
| 313 | } |
| 314 | |
| 315 | struct command_result *json_offer(struct command *cmd, |
| 316 | const char *buffer, |
nothing calls this directly
no test coverage detected