OpenZeppelin / OpenZeppelin/compact-contracts

Utilize `recipientTypes` and `ownerTypes` in NonFungibleToken tests

Open
#141 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement stale
Dominant language
TypeScript
Stars
55
Forks
29
Avg merge
5d 7h
Merged PRs (30d)
25

Description

Contributor guide

Open the contributing guide

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.

Research direction

Start with the referenced FungibleToken.test.ts sections at lines 36 and 132, then find the NonFungibleToken tests and inspect how Either<ZswapPublicKey, ContractAddress> cases are set up. Reuse the recipientTypes and ownerTypes approach where applicable, and consider the work done when the test boilerplate is reduced and the affected tests still pass.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.