Skip to content

fix: register account in history note TXE tests after ALL_SCOPES removal#22170

Draft
AztecBot wants to merge 1 commit intomerge-train/fairiesfrom
claudebox/fix-merge-train-fairies
Draft

fix: register account in history note TXE tests after ALL_SCOPES removal#22170
AztecBot wants to merge 1 commit intomerge-train/fairiesfrom
claudebox/fix-merge-train-fairies

Conversation

@AztecBot
Copy link
Copy Markdown
Collaborator

Summary

The feat!: remove ALL_SCOPES change (#22136) replaced 'ALL_SCOPES' with keyStore.getAccounts() in TXE session scopes, but didn't update the history note tests. These tests used a hardcoded NOTE_OWNER address that was never registered as an account, causing scope check failures.

Fix: call env.create_light_account() to register an account in the keystore and use its address as the note owner.

Test Verification

All 13 history tests pass (5 note + 8 nullifier) after the fix.

Full analysis: https://gist.github.com/AztecBot/ebb6d0d978f5b32b8fc46a35799a28e2

ClaudeBox log: https://claudebox.work/s/85b02bc345678e42?run=1

@AztecBot AztecBot added ci-draft Run CI on draft PRs. claudebox Owned by claudebox. it can push to this PR. labels Mar 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci-draft Run CI on draft PRs. claudebox Owned by claudebox. it can push to this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant