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

Fixed DefaultFunctionEncoder calculating offset for nested StaticArray #2054

Merged
merged 1 commit into from
May 23, 2024

Conversation

penuel-leo
Copy link
Contributor

@penuel-leo penuel-leo commented May 13, 2024

What does this PR do?

This PR fixed DefaultFunctionEncoder calculates offset for nested StaticStruct.
That's the problem that's bothering me right now.
See issue-2052 for details

Where should the reviewer start?

Look at the getLength function of DefaultFunctionEncoder.java changes.

Why is it needed?

In slightly complex nested structures, calculate offset via getLength is incorrect. This is a bug that needs to be fixed.

Checklist

  • I've read the contribution guidelines.
  • I've added tests (if applicable).
  • I've added a changelog entry if necessary.

Signed-off-by: penuel.li <penuel.leo@gmail.com>
Copy link
Contributor

@NickSneo NickSneo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@NickSneo NickSneo merged commit 9301515 into hyperledger:main May 23, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants