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

function encodeKeyName behaves incorrectly for dynamic keys when dynamic key part is <bytesN> #486

Open
1 of 4 tasks
CJ42 opened this issue Nov 6, 2024 · 0 comments
Open
1 of 4 tasks
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@CJ42
Copy link
Collaborator

CJ42 commented Nov 6, 2024

I'm submitting a...

  • bug report
  • feature request
  • question about the decisions made in the repository
  • question about how to use this project

Summary

When using the encodeKeyName function with a data key that contains a dynamic key part of type <bytesN>, the hex value generated is incorrect. For bytesN, the padding should occur on the right side ✅ instead of on the left side ❌

See the following screenshots to see the error and reproduce it.

image

Instead, the encoding should look as follow:

image

Other information (e.g. detailed explanation, stack traces, related issues, suggestions how to fix, links for us to have context, eg. StackOverflow, personal fork, etc.)

@CJ42 CJ42 added bug Something isn't working good first issue Good for newcomers labels Nov 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant