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

FIX: bug in TrieKeyAdaptor swapLastByte #13

Merged

Conversation

thomas-quadratic
Copy link
Contributor

PR description

There was a bug in TrieKeyAdaptor.swapLastByte : it did not take properly into account the last byte of a UInt256.
Some minor improvements where also made:

  1. UInt256 are reversed to littleEndian as it should be.
  2. All indexes are passed as UInt256.
  3. More tests have been included for contract code chunking.

swapLastByte did not take properly into account the last byte of a UInt256.
Also, the UInt256 is reversed to littleEndian as part of the routine.
More tests have been included for contract code chunking.

Signed-off-by: Thomas Zamojski <[email protected]>
Copy link

  • I thought about the changelog.

@matkt matkt merged commit c2e9c86 into hyperledger:main Nov 17, 2023
5 checks passed
dragan2234 pushed a commit to dragan2234/besu-verkle-trie that referenced this pull request Jan 22, 2024
swapLastByte did not take properly into account the last byte of a UInt256.
Also, the UInt256 is reversed to littleEndian as part of the routine.
More tests have been included for contract code chunking.

Signed-off-by: Thomas Zamojski <[email protected]>
Signed-off-by: Dragan Pilipovic <[email protected]>
dragan2234 pushed a commit to dragan2234/besu-verkle-trie that referenced this pull request Jan 22, 2024
swapLastByte did not take properly into account the last byte of a UInt256.
Also, the UInt256 is reversed to littleEndian as part of the routine.
More tests have been included for contract code chunking.

Signed-off-by: Thomas Zamojski <[email protected]>
Signed-off-by: Dragan Pilipovic <[email protected]>
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.

2 participants