-
Notifications
You must be signed in to change notification settings - Fork 37
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
chore(starknet_l1_provider_types): add invalid validation status enum #4256
base: main
Are you sure you want to change the base?
chore(starknet_l1_provider_types): add invalid validation status enum #4256
Conversation
This stack of pull requests is managed by Graphite. Learn more about stacking. |
This is cute. I am not sure it is a good design. Code quote: impl ValidationStatus {
#[allow(non_upper_case_globals)]
pub const AlreadyIncludedInProposedBlock: Self =
Self::Invalid(InvalidValidationStatus::AlreadyIncludedInProposedBlock);
#[allow(non_upper_case_globals)]
pub const AlreadyIncludedOnL2: Self =
Self::Invalid(InvalidValidationStatus::AlreadyIncludedOnL2);
#[allow(non_upper_case_globals)]
pub const ConsumedOnL1OrUnknown: Self =
Self::Invalid(InvalidValidationStatus::ConsumedOnL1OrUnknown);
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: 0 of 3 files reviewed, all discussions resolved (waiting on @giladchase)
crates/starknet_l1_provider_types/src/lib.rs
line 40 at r1 (raw file):
Previously, ArniStarkware (Arnon Hod) wrote…
This is cute. I am not sure it is a good design.
Talked f2f, let's opt for readability and conventions.
f437e1c
to
0f396d2
Compare
f03eeee
to
f95d6e5
Compare
0f396d2
to
5117586
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: 0 of 5 files reviewed, all discussions resolved (waiting on @giladchase)
crates/starknet_l1_provider_types/src/lib.rs
line 40 at r1 (raw file):
Previously, alonh5 (Alon Haramati) wrote…
Talked f2f, let's opt for readability and conventions.
Done.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 2 of 3 files at r1, 3 of 3 files at r2, all commit messages.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on @giladchase)
No description provided.