We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3965512 + fcbbb3d commit 903861dCopy full SHA for 903861d
yarn-project/aztec/src/cli/cmds/start_bot.ts
@@ -27,7 +27,12 @@ export async function startBot(
27
}
28
29
const fetch = makeTracedFetch([1, 2, 3], true);
30
- const node = createAztecNodeClient(options.nodeUrl, getVersions(), fetch);
+ const config = extractRelevantOptions<BotConfig>(options, botConfigMappings, 'bot');
31
+ if (!config.nodeUrl) {
32
+ throw new Error('The bot requires access to a Node');
33
+ }
34
+
35
+ const node = createAztecNodeClient(config.nodeUrl, getVersions(), fetch);
36
37
// Start a PXE client that is used by the bot if required
38
let pxe: PXE | undefined;
0 commit comments