diff --git a/yarn-project/cli-wallet/src/bin/index.ts b/yarn-project/cli-wallet/src/bin/index.ts index 9579904727e4..df1fad053390 100644 --- a/yarn-project/cli-wallet/src/bin/index.ts +++ b/yarn-project/cli-wallet/src/bin/index.ts @@ -17,7 +17,7 @@ import { PXEWrapper } from '../utils/pxe_wrapper.js'; const userLog = createConsoleLogger(); const debugLogger = createLogger('wallet'); -const { WALLET_DATA_DIRECTORY = join(homedir(), '.aztec/wallet'), PXE_PROVER = 'none' } = process.env; +const { WALLET_DATA_DIRECTORY = join(homedir(), '.aztec/wallet') } = process.env; function injectInternalCommands(program: Command, log: LogFn, db: WalletDB) { program @@ -77,7 +77,12 @@ async function main() { .description('Aztec wallet') .version(walletVersion) .option('-d, --data-dir ', 'Storage directory for wallet data', WALLET_DATA_DIRECTORY) - .option('-p, --prover ', 'wasm|native|none', PXE_PROVER) + .addOption( + new Option('-p, --prover ', 'The type of prover the wallet uses (only applies if not using a remote PXE)') + .choices(['wasm', 'native', 'none']) + .env('PXE_PROVER') + .default('native'), + ) .addOption( new Option('--remote-pxe', 'Connect to an external PXE RPC server, instead of the local one') .env('REMOTE_PXE') diff --git a/yarn-project/cli-wallet/test/flows/shared/setup.sh b/yarn-project/cli-wallet/test/flows/shared/setup.sh index 17fcfe3eeb9e..585871da2dbb 100644 --- a/yarn-project/cli-wallet/test/flows/shared/setup.sh +++ b/yarn-project/cli-wallet/test/flows/shared/setup.sh @@ -14,6 +14,8 @@ command="${COMMAND:-"node --no-warnings $root/yarn-project/cli-wallet/dest/bin/i flows=$(pwd) cd $root/noir-projects/noir-contracts +PXE_PROVER="none" + function aztec-wallet { echo_header aztec-wallet "$@" $command "$@" diff --git a/yarn-project/cli-wallet/test/test.sh b/yarn-project/cli-wallet/test/test.sh index a13f38f3c692..eeb32e183a03 100755 --- a/yarn-project/cli-wallet/test/test.sh +++ b/yarn-project/cli-wallet/test/test.sh @@ -33,6 +33,7 @@ done set -- "${POSITIONAL_ARGS[@]}" # restore positional parameters export WALLET_DATA_DIRECTORY="${LOCATION}/data" +export PXE_PROVER="none" rm -rf $WALLET_DATA_DIRECTORY mkdir -p $WALLET_DATA_DIRECTORY