Skip to content

fix(cli-wallet): guard default mnemonic on live networks - #25291

Open
loglapa wants to merge 1 commit into
AztecProtocol:merge-train/spartanfrom
loglapa:vl/fix-default-mnemonic-guard-24850
Open

fix(cli-wallet): guard default mnemonic on live networks#25291
loglapa wants to merge 1 commit into
AztecProtocol:merge-train/spartanfrom
loglapa:vl/fix-default-mnemonic-guard-24850

Conversation

@loglapa

@loglapa loglapa commented Aug 22, 2026

Copy link
Copy Markdown

Fixes #24850

Summary

  • refuse aztec-wallet bridge-fee-juice when a non-local L1 chain would silently use the public Anvil/Hardhat mnemonic
  • keep chain IDs 1337 and 31337 unchanged
  • allow explicit private keys, custom/explicit mnemonics, or the explicit --i-know-this-uses-the-public-test-mnemonic opt-in
  • fail before loading or invoking the bridge implementation

Validation

  • 9 focused Jest cases in the repository devbox container using the saved Linux build artifacts
  • tsc -p yarn-project/cli-wallet/tsconfig.json --noEmit
  • Prettier on changed files
  • focused ESLint on changed files

Signed-off-by: Vladislav Lapin <v.lapin@scalablesolutions.io>
@loglapa
loglapa marked this pull request as ready for review August 22, 2026 12:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant