Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Migrate deprecated .accounts() to .accountsPartial() in Anchor tests

Open Beginner friendly
#747 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

  • #746 by @Enmilo-dev — closed without merging

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
75/100
Issue type
Refactor
Clarity
Mostly clear
Activity status
Active
Tech stack
typescript

Research direction

Search the example test files for .accounts() and review the surrounding Anchor TypeScript client usage. Replace the deprecated calls with .accountsPartial({...}), then run the affected tests to confirm behavior is unchanged and no deprecated calls remain.

Written by the indexing model from the issue text.

Description

Problem

.accounts() is deprecated in the Anchor TypeScript client
(@coral-xyz/anchor ): "".
Many example tests still use it, so people copying these examples
learn the deprecated API.

Proposal

Replace .accounts({...}) with .accountsPartial({...}) in the tests.
Tests only, no program changes, no behavior change.

Dominant language
TypeScript
Stars
1.4k
Forks
541
Avg merge
2h 35m
Merged PRs (30d)
9

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from solana-foundation/program-examples

All issues in solana-foundation/program-examples

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.