Skip to content

fix(aztec): respect TEST_ACCOUNTS env var in local network mode#22600

Merged
benesjan merged 1 commit into
merge-train/fairiesfrom
jb/fix-test-accounts-env-var
Apr 17, 2026
Merged

fix(aztec): respect TEST_ACCOUNTS env var in local network mode#22600
benesjan merged 1 commit into
merge-train/fairiesfrom
jb/fix-test-accounts-env-var

Conversation

@benesjan

Copy link
Copy Markdown
Contributor

Summary

  • Fixes TEST_ACCOUNTS=false being ignored when running aztec start --local-network (hardcoded to true)
  • Adds --local-network.testAccounts CLI option bound to TEST_ACCOUNTS env var (defaults to true for backwards compatibility)
  • Fixes extractNamespacedOptions namespace mismatch — Commander camelCases --local-network.* to localNetwork.*, but the extraction used the local-network. prefix (also fixes --local-network.l1Mnemonic which was silently broken)

Closes #21563

Test plan

  • Added 2 unit tests verifying TEST_ACCOUNTS=false env var is respected and the default is true
  • All 12 tests in aztec_start_options.test.ts pass

🤖 Generated with Claude Code

The `TEST_ACCOUNTS` env var was ignored when running `aztec start
--local-network` because `testAccounts` was hardcoded to `true` in
`aztec_start_action.ts`. This adds a proper CLI option bound to the
env var (defaulting to `true`) and fixes the namespace extraction
which was silently broken due to Commander camelCasing the prefix.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@benesjan benesjan merged commit d9a63e3 into merge-train/fairies Apr 17, 2026
25 checks passed
@benesjan benesjan deleted the jb/fix-test-accounts-env-var branch April 17, 2026 07:50
AztecBot pushed a commit that referenced this pull request Apr 17, 2026
## Summary

- Fixes `TEST_ACCOUNTS=false` being ignored when running `aztec start
--local-network` (hardcoded to `true`)
- Adds `--local-network.testAccounts` CLI option bound to
`TEST_ACCOUNTS` env var (defaults to `true` for backwards compatibility)
- Fixes `extractNamespacedOptions` namespace mismatch — Commander
camelCases `--local-network.*` to `localNetwork.*`, but the extraction
used the `local-network.` prefix (also fixes
`--local-network.l1Mnemonic` which was silently broken)

Closes #21563

## Test plan

- Added 2 unit tests verifying `TEST_ACCOUNTS=false` env var is
respected and the default is `true`
- All 12 tests in `aztec_start_options.test.ts` pass

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@AztecBot

Copy link
Copy Markdown
Collaborator

✅ Successfully backported to backport-to-v4-next-staging #22580.

github-merge-queue Bot pushed a commit that referenced this pull request Apr 17, 2026
BEGIN_COMMIT_OVERRIDE
fix(pxe): stop block synchronizer on PXE shutdown (#22604)
fix(aztec): respect TEST_ACCOUNTS env var in local network mode (#22600)
fix: check all aztec-nr dependency tags, not just aztec (#22483)
fix: reuse anchor block in kernel oracle (#22631)
refactor: unify contract compilation pipeline via bb aztec_process
(#22590)
fix(pxe): queue registerSender wipe to avoid racing with in-flight jobs
(#22623)
fix(pxe): bounds-check PropertySelector in pick_notes (#22614)
fix(pxe): guard private event store rollback against in-flight jobs
(#22615)
refactor(pxe): rename sideEffectCounter to initialSideEffectCounter
(#22599)
fix(pxe): correct stale authwitness comment and inverted tagging error
(#22537)
fix(aztec-nr): range-check auth witness fields before byte cast (#22624)
fix(pxe): serialize block stream event handling to prevent race
conditions (#22635)
fix(pxe): throw error on origin/contract address mismatch in simulation
(#22637)
END_COMMIT_OVERRIDE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants