Skip to content

fix: correct bool logic in get_multiple_accounts from remote#559

Merged
MicaiahReid merged 7 commits intomainfrom
fix/get-multiple-accounts-logic
Mar 6, 2026
Merged

fix: correct bool logic in get_multiple_accounts from remote#559
MicaiahReid merged 7 commits intomainfrom
fix/get-multiple-accounts-logic

Conversation

@MicaiahReid
Copy link
Copy Markdown
Collaborator

@MicaiahReid MicaiahReid commented Mar 6, 2026

This PR introduced a subtle bug when fetching multiple accounts from the remote:

  • a boolean logic bug (|| -> &&) was preventing some accounts from getting fetched
  • reordering of a result led to an errant zip among two vecs

This PR introduced loading accounts on startup when there's a test.validator.account provided in an Anchor.toml. However, it shouldn't pull those accounts in if there's a Test.toml provided as well (Test.toml overrides)

Both bugs are fixed, with tests added

@MicaiahReid MicaiahReid force-pushed the fix/get-multiple-accounts-logic branch from f389962 to 998b95e Compare March 6, 2026 20:01
@MicaiahReid MicaiahReid changed the base branch from fix/tx-dedup to main March 6, 2026 20:01
@MicaiahReid MicaiahReid requested a review from lgalabru March 6, 2026 20:05
Copy link
Copy Markdown
Collaborator

@lgalabru lgalabru left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @MicaiahReid!

@MicaiahReid MicaiahReid merged commit 39f6d25 into main Mar 6, 2026
5 checks passed
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.

2 participants