8000 feat: use U256 instead of global index by hadjiszs · Pull Request #857 · agglayer/agglayer · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

feat: use U256 instead of global index #857

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

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Conversation

hadjiszs
Copy link
Contributor

Description

Use U256 directly instead of GlobalIndex in order to preserve the values of the padded unused bits.

Companion of:

PR Checklist:

  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have added or updated tests that comprehensively prove my change is effective or that my feature works

Comment on lines +47 to +51
agglayer-interop = { git = "https://github.com/agglayer/interop.git", branch = "feat/gi-unused-bits" }
agglayer-interop-types = { git = "https://github.com/agglayer/interop.git", branch = "feat/gi-unused-bits" }
agglayer-primitives = { git = "https://github.com/agglayer/interop.git", branch = "feat/gi-unused-bits" }
agglayer-tries = { git = "https://github.com/agglayer/interop.git", branch = "feat/gi-unused-bits" }
unified-bridge = { git = "https://github.com/agglayer/interop.git", branch = "feat/gi-unused-bits" }
Copy link
Contributor Author

Choose a reason for hiding this comment

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

todo: points to release tag once ready

global_index: GlobalIndex,
global_index: U256,
Copy link
Contributor Author
@hadjiszs hadjiszs Jun 23, 2025

Choose a reason for hiding this comment

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

@iljakuklic such change is breaking for the serialization/deserialization iirc right? In that case should I just create a new variant with U256 instead of GlobalIndex?

Copy link
Contributor

Choose a reason for hiding this comment

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

@iljakuklic such change is breaking for the serialization/deserialization iirc right? In that case should I just create a new variant with U256 instead of GlobalIndex?

Yep, a new variant is required here.

Once we get the up-to-date interop dependency, I will be able to create a PR taking a snapshot of the structure of these types which will make it easier to spot the incompatibilities.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0