Skip to content

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

Closed
AztecBot wants to merge 1 commit into
merge-train/fairiesfrom
claudebox/fix-merge-train-fairies
Closed

fix: register account in history note TXE tests after ALL_SCOPES removal#22170
AztecBot wants to merge 1 commit into
merge-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
@benesjan

Copy link
Copy Markdown
Contributor

not needed anymore

@benesjan benesjan closed this Mar 31, 2026
@benesjan benesjan deleted the claudebox/fix-merge-train-fairies branch March 31, 2026 12:17
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.

2 participants