Skip to content

Commit

Permalink
chore: add version number when starting sandbox (#10935)
Browse files Browse the repository at this point in the history
Fixes underlying issue presented in #10687 

Seems to have been removed during a refactor

Note this is untested!
  • Loading branch information
rahul-kothari authored Dec 24, 2024
1 parent f6fef05 commit c8dcd8f
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion yarn-project/aztec/src/cli/aztec_start_action.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,18 @@ import {
startHttpRpcServer,
} from '@aztec/foundation/json-rpc/server';
import { type LogFn, type Logger } from '@aztec/foundation/log';
import { fileURLToPath } from '@aztec/foundation/url';

import { readFileSync } from 'fs';
import { dirname, resolve } from 'path';

import { createSandbox } from '../sandbox.js';
import { github, splash } from '../splash.js';
import { createAccountLogs, extractNamespacedOptions, installSignalHandlers } from './util.js';

const packageJsonPath = resolve(dirname(fileURLToPath(import.meta.url)), '../../package.json');
const cliVersion: string = JSON.parse(readFileSync(packageJsonPath).toString()).version;

export async function aztecStart(options: any, userLog: LogFn, debugLogger: Logger) {
// list of 'stop' functions to call when process ends
const signalHandlers: Array<() => Promise<void>> = [];
Expand All @@ -19,7 +26,8 @@ export async function aztecStart(options: any, userLog: LogFn, debugLogger: Logg
if (options.sandbox) {
const sandboxOptions = extractNamespacedOptions(options, 'sandbox');
userLog(`${splash}\n${github}\n\n`);
userLog(`Setting up Aztec Sandbox, please stand by...`);
userLog(`Setting up Aztec Sandbox ${cliVersion}, please stand by...`);

const { aztecNodeConfig, node, pxe, stop } = await createSandbox({
enableGas: sandboxOptions.enableGas,
l1Mnemonic: options.l1Mnemonic,
Expand Down

0 comments on commit c8dcd8f

Please sign in to comment.