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

chore(starknet_l1_provider_types): add invalid validation status enum #4256

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

Conversation

ArniStarkware
Copy link
Contributor

No description provided.

@reviewable-StarkWare
Copy link

This change is Reviewable

Copy link
Contributor Author

ArniStarkware commented Feb 19, 2025

@ArniStarkware
Copy link
Contributor Author

crates/starknet_l1_provider_types/src/lib.rs line 40 at r1 (raw file):

    pub const ConsumedOnL1OrUnknown: Self =
        Self::Invalid(InvalidValidationStatus::ConsumedOnL1OrUnknown);
}

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);
}

Copy link
Collaborator

@alonh5 alonh5 left a 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.

@ArniStarkware ArniStarkware changed the base branch from arni/l1_validation_status/transaction_provider_error_message to graphite-base/4256 February 19, 2025 14:59
@ArniStarkware ArniStarkware force-pushed the arni/l1_validation_status/split_to_valid_vs_invalid branch from f437e1c to 0f396d2 Compare February 19, 2025 14:59
@ArniStarkware ArniStarkware changed the base branch from graphite-base/4256 to main February 19, 2025 14:59
@ArniStarkware ArniStarkware force-pushed the arni/l1_validation_status/split_to_valid_vs_invalid branch from 0f396d2 to 5117586 Compare February 19, 2025 15:01
Copy link
Contributor Author

@ArniStarkware ArniStarkware left a 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.

Copy link
Collaborator

@alonh5 alonh5 left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewed 2 of 3 files at r1, 3 of 3 files at r2, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @giladchase)

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.

3 participants