| 1274 | } |
| 1275 | |
| 1276 | static struct command_result * |
| 1277 | param_funder_opt(struct command *cmd, const char *name, |
| 1278 | const char *buffer, const jsmntok_t *tok, |
| 1279 | enum funder_opt **opt) |
| 1280 | { |
| 1281 | char *opt_str, *err; |
| 1282 | |
| 1283 | *opt = tal(cmd, enum funder_opt); |
| 1284 | opt_str = tal_strndup(cmd, buffer + tok->start, |
| 1285 | tok->end - tok->start); |
| 1286 | |
| 1287 | err = funding_option(cmd, opt_str, false, *opt); |
| 1288 | if (err) |
| 1289 | return command_fail_badparam(cmd, name, buffer, tok, err); |
| 1290 | |
| 1291 | return NULL; |
| 1292 | } |
| 1293 | |
| 1294 | |
| 1295 | static struct command_result * |
nothing calls this directly
no test coverage detected