Migrate deprecated .accounts() to .accountsPartial() in Anchor tests
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
- Domain
- blockchain, testing
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
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from solana-foundation/program-examples
-
basics/pda-rent-payer: create_new_account has no caller check — worth a note for people copying it?May be free again A pull request for this issue was closed without being merged. Open
Difficulty 1/5 Under an hour Newbie friendliness 78/100
solana-foundation/program-examples#671 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 55/100
solana-foundation/program-examples#743 · 1 comment ·
Maintainers usually reply within 1 day
-
tokens/nft-staking: propose an NFT staking example (delegate + freeze, checkpointed rewards)Possibly taken @Harsh-H-Shah claimed this 32 days ago. Open
Difficulty 5/5 Over a week Newbie friendliness 35/100
solana-foundation/program-examples#726 ·
Maintainers usually reply within 1 day
-
token-fundraiser: no teardown for a failed campaign (vault + fundraiser rent stranded)May be free again A pull request for this issue was closed without being merged. Open
Difficulty 4/5 3-5 days Newbie friendliness 58/100
solana-foundation/program-examples#725 ·
Maintainers usually reply within 1 day
All issues in solana-foundation/program-examples
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
openwatersio/slackwater-database#281 ·
Maintainers usually reply within 1 day
-
accepted bug via-triage
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
pingdotgg/t3code#18690 · 1 comment ·
Maintainers usually reply within 1 day
-
Bayern feature:Application ready web
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
digitalfabrik/entitlementcard#3176 ·
Maintainers usually reply within 7 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
NanmiCoder/cc-haha#1533 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day