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: unpack bits to Nibbles #81

Merged
merged 4 commits into from
Dec 13, 2024
Merged

fix: unpack bits to Nibbles #81

merged 4 commits into from
Dec 13, 2024

Conversation

frisitano
Copy link
Collaborator

@frisitano frisitano commented Dec 12, 2024

In some code paths which are relevant to scroll we were unpacking into nibbles without using the BitsCompatability trait (::unpack_bits(..)) and as such we were not unpacking correctly. This impacted state root calculation in #79 which leverages the PrefixSetLoader. In this PR we modify code paths relevant to scroll to use unpack_bits(..) instead of unpack(..) when unpacking to Nibbles.

closes: #79

@frisitano frisitano mentioned this pull request Dec 13, 2024
1 task
@frisitano frisitano marked this pull request as ready for review December 13, 2024 12:30
@frisitano frisitano requested a review from greged93 December 13, 2024 12:30
@frisitano frisitano changed the title add additional test coverage for state root fix: Nibbles unpack bits to Nibbles Dec 13, 2024
@frisitano frisitano changed the title fix: Nibbles unpack bits to Nibbles fix: unpack bits to Nibbles Dec 13, 2024
Copy link
Collaborator

@greged93 greged93 left a comment

Choose a reason for hiding this comment

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

lgtm!

@frisitano frisitano merged commit 133d9c0 into scroll Dec 13, 2024
41 checks passed
@frisitano frisitano deleted the fix/zktrie-db branch December 13, 2024 12:45
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.

Database State Root
2 participants