Skip to content

Commit

Permalink
fix cln dependency config (#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dominion5254 authored Sep 19, 2024
1 parent 4faab14 commit 1f3c363
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scripts/procedures/dependencies.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const { shape, boolean } = matches;
const matchClnConfig = shape({
advanced: shape({
plugins: shape({
rest: boolean,
clnrest: boolean,
})
})
});
Expand All @@ -16,16 +16,16 @@ export const dependencies: T.ExpectedExports.dependencies = {
async check(effects, configInput) {
effects.info("check c-lightning");
const config = matchClnConfig.unsafeCast(configInput);
if (!config.advanced.plugins.rest) {
return { error: "C-Lightning-REST plugin must be enabled"};
if (!config.advanced.plugins.clnrest) {
return { error: "CLNRest plugin must be enabled"};
}
return { result: null };
},
// deno-lint-ignore require-await
async autoConfigure(effects, configInput) {
effects.info("autoconfigure c-lightning");
const config = matchClnConfig.unsafeCast(configInput);
config.advanced.plugins.rest = true;
config.advanced.plugins.clnrest = true;
return { result: config };
},
},
Expand Down

0 comments on commit 1f3c363

Please sign in to comment.