diff --git a/plugins/pay.c b/plugins/pay.c index cc55f703e..ffae830d6 100644 --- a/plugins/pay.c +++ b/plugins/pay.c @@ -1283,8 +1283,8 @@ static struct command_result *json_pay(struct command *cmd, NULL)) return command_param_failed(); - /* FIXME: We need to know our features! */ - b11 = bolt11_decode(cmd, b11str, NULL, NULL, &fail); + b11 = bolt11_decode(cmd, b11str, plugin_feature_set(cmd->plugin), + NULL, &fail); if (!b11) { return command_fail(cmd, JSONRPC2_INVALID_PARAMS, "Invalid bolt11: %s", fail);