Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions yarn-project/cli-wallet/src/bin/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -77,7 +77,12 @@ async function main() {
.description('Aztec wallet')
.version(walletVersion)
.option('-d, --data-dir <string>', 'Storage directory for wallet data', WALLET_DATA_DIRECTORY)
.option('-p, --prover <string>', 'wasm|native|none', PXE_PROVER)
.addOption(
new Option('-p, --prover <string>', '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')
Expand Down
1 change: 1 addition & 0 deletions yarn-project/cli-wallet/test/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down