Skip to content

fix(escrow): use accountsPartial instead of deprecated accounts in tests - #660

Open
Enmilo-dev wants to merge 1 commit into
solana-foundation:mainfrom
Enmilo-dev:fix/escrow-accounts-partial
Open

fix(escrow): use accountsPartial instead of deprecated accounts in tests#660
Enmilo-dev wants to merge 1 commit into
solana-foundation:mainfrom
Enmilo-dev:fix/escrow-accounts-partial

Conversation

@Enmilo-dev

Copy link
Copy Markdown

What

Replaces deprecated .accounts() calls with .accountsPartial() in the
escrow test suite, removing the TypeScript deprecation warning.

Why

Anchor's .accounts() method is deprecated in favor of .accountsPartial(),
which lets Anchor auto-resolve PDA accounts from seeds. Tests currently
trigger a TS warning; this fix aligns with the tooling migration already
in progress elsewhere in this repo.

Testing

anchor test passes cleanly with no warnings after the change.

@Enmilo-dev
Enmilo-dev requested a review from dev-jodee as a code owner July 31, 2026 16:31
@dev-jodee

Copy link
Copy Markdown
Collaborator

need verified commits, please sign the commits

@Enmilo-dev
Enmilo-dev force-pushed the fix/escrow-accounts-partial branch from c400508 to 4c65f3e Compare July 31, 2026 16:50
@Enmilo-dev
Enmilo-dev force-pushed the fix/escrow-accounts-partial branch from 4c65f3e to 0e7b310 Compare July 31, 2026 16:53
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