Skip to content

Conversation

@tcoratger
Copy link
Collaborator

πŸ—’οΈ Description

@anshalshukla I've tried some kind of cleanup, let me know what you think about it?

πŸ”— Related Issues or PRs

βœ… Checklist

  • Ran tox checks to avoid unnecessary CI fails:
    uvx tox
  • Considered adding appropriate tests for the changes.
  • Considered updating the online docs in the ./docs/ directory.

@tcoratger tcoratger requested review from g11tech and unnawut December 29, 2025 22:03

if TYPE_CHECKING:
from lean_spec.subspecs.containers.attestation import AggregationBits
data_root: Bytes32
Copy link
Contributor

Choose a reason for hiding this comment

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

Why not just make it bytes? Right now you have to wrap root field in Bytes32 in every function call.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Thanks for the observation, to have a stronger typing, I changed instead the return type of data_root_bytes() function to have Bytes32 directly and so we don't need wrappers anymore :)

@tcoratger tcoratger merged commit 634d407 into leanEthereum:main Dec 30, 2025
10 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.

2 participants