Find a better solution for `arrayPacked` flag

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

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
20/100
Issue type
Refactor
Clarity
Needs clarification
Activity status
Stale
Tech stack
typescript

Research direction

Start by tracing the existing uses of the arrayPacked flag through the TypeScript ABI encoding and decoding paths. Determine how array items are padded to 32 bytes without encoding the array length, then compare the current flag-based behavior with a possible replacement. Done means the behavior is preserved without requiring the extra flag and the relevant encoding and decoding cases remain consistent.

Written by the indexing model from the issue text.

Description

enhancement help wanted

We need a way to pad array items to 32 bytes, but not encode the length of the array. Right now we do that using the arrayPacked flag, but there might be a better solution for this that does not require an extra flag.

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.