Add test vectors for individual parsers

Open
#18 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
45/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
solidity, typescript

Research direction

Start by reading the existing general test vectors and the individual parser entry points. Extract vectors for address, array, bool, bytes, fixed-bytes, function, number, string, and tuple in both normal and packed modes, then verify them using Solidity; done means all checklist entries are covered.

Written by the indexing model from the issue text.

Description

enhancement

Right now we have test vectors for testing encoding as a whole, but we should also have test vectors for individual parsers, using both the normal and packed mode.

The test vectors can be extracted from the general test vectors, and verified using Solidity.

  • address
  • array
  • bool
  • bytes
  • fixed-bytes
  • function
  • number
  • string
  • tuple
Dominant language
TypeScript
Stars
24
Forks
8
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

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 MetaMask/abi-utils

All issues in MetaMask/abi-utils

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.