Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: VecCoder@v1 accepts UInt8Array as encode input #2289

Merged
merged 2 commits into from
May 13, 2024

Conversation

danielbate
Copy link
Contributor

@danielbate danielbate commented May 12, 2024

The work in #2018 made a UInt8Array a valid input for for VecCoder.encode. This is useful for working with bytecode, where the function likely accepts a Vec<u8> and the input would be passed as arrayified binary, so requiring a number[] is poor DX.

This feature was not brought across to V1, it was probably missed due to the timing overlap. This PR introduces that change to V1 encoding.

Copy link
Contributor

Coverage Report:

Lines Branches Functions Statements
79.54%(+0.01%) 69.84%(+0.05%) 77.12%(+0%) 79.65%(+0.01%)
Changed Files:

Coverage values did not change👌.

@danielbate danielbate merged commit 16196b6 into master May 13, 2024
27 of 29 checks passed
@danielbate danielbate deleted the db/feat/v1-vec-coder-accept-typed-array branch May 13, 2024 07:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants