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

Remove ConstantsReader #4922

Merged
merged 2 commits into from
Feb 1, 2022
Merged

Conversation

ajsutton
Copy link
Contributor

@ajsutton ajsutton commented Feb 1, 2022

PR Description

Modifies Constants to manually load the remaining fields from a SpecConfig instance to ensure they're always in sync (and there's only three fields from the spec now so no need for all the reflection magic).

Required moving Constants to the spec.config package alongside SpecConfig to get the module dependencies to work which caused quite a lot of noise.

Fixed Issue(s)

Documentation

  • I thought about documentation and added the documentation label to this PR if updates are required.

Changelog

  • I thought about adding a changelog entry, and added one if I deemed necessary.

Modifies Constants to manually load the remaining fields from a SpecConfig instance to ensure they're always in sync.
Required moving Constants to the spec.config package alongside SpecConfig to get the module dependencies to work.
Copy link
Contributor

@tbenr tbenr left a comment

Choose a reason for hiding this comment

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

LGTM

@ajsutton ajsutton enabled auto-merge (squash) February 1, 2022 23:40
@ajsutton ajsutton merged commit 8359d2d into Consensys:master Feb 1, 2022
@ajsutton ajsutton deleted the remove-constants-reader branch February 1, 2022 23:57
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