Skip to content

Commit

Permalink
chore(starknet_l1_provider_types): fix typo in validation status
Browse files Browse the repository at this point in the history
  • Loading branch information
ArniStarkware committed Feb 17, 2025
1 parent e80c656 commit be1749d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion crates/starknet_l1_provider/src/l1_provider_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ fn validate_happy_flow() {
// Transaction wasn't deleted after the validation.
assert_eq!(
l1_provider.validate(tx_hash!(1), BlockNumber(0)).unwrap(),
ValidationStatus::AlreadyIncludedInPropsedBlock
ValidationStatus::AlreadyIncludedInProposedBlock
);
}

Expand Down
2 changes: 1 addition & 1 deletion crates/starknet_l1_provider/src/transaction_manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ impl TransactionManager {
if self.txs.soft_remove(tx_hash).is_some() {
ValidationStatus::Validated
} else if self.txs.is_staged(&tx_hash) {
ValidationStatus::AlreadyIncludedInPropsedBlock
ValidationStatus::AlreadyIncludedInProposedBlock
} else {
ValidationStatus::ConsumedOnL1OrUnknown
}
Expand Down
2 changes: 1 addition & 1 deletion crates/starknet_l1_provider_types/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ pub type SharedL1ProviderClient = Arc<dyn L1ProviderClient>;

#[derive(Clone, Copy, Debug, PartialEq, Eq, Serialize, Deserialize)]
pub enum ValidationStatus {
AlreadyIncludedInPropsedBlock,
AlreadyIncludedInProposedBlock,
AlreadyIncludedOnL2,
ConsumedOnL1OrUnknown,
Validated,
Expand Down

0 comments on commit be1749d

Please sign in to comment.