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(rust-bindings): Use fixed-bytes B256 for overhead and scalar in SystemConfig #505

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

Conversation

BrianBland
Copy link

@BrianBland BrianBland commented Aug 22, 2024

This PR changes the type of the SystemConfig fields overhead and scalar from U256 to B256, as these are assumed to be fixed-length fields in the reference go implementation.

By using fixed-length types, it should be possible to serialize a SystemConfig from the rust bindings and then deserialize these into code in the golang monorepo.

Checklist

  • I have declared the chain at the appropriate Superchain Level.
  • I have run just validate <chain-id> locally to ensure all local validation checks pass.
  • I have run just codegen to ensure that the chainlist and other generated files are up-to-date and include my chain.

@BrianBland BrianBland force-pushed the fix-system-config-types branch 2 times, most recently from 758346a to 8d30e89 Compare August 22, 2024 23:58
@BrianBland BrianBland marked this pull request as ready for review August 26, 2024 17:17
@BrianBland BrianBland requested a review from a team as a code owner August 26, 2024 17:17
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.

1 participant