Skip to content

Commit

Permalink
add l1Origin error enums in ProviderError
Browse files Browse the repository at this point in the history
  • Loading branch information
mask-pp committed Nov 2, 2024
1 parent 79f528f commit efa1ca5
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions crates/storage/errors/src/provider.rs
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,14 @@ pub enum ProviderError {
StorageLockError(StorageLockError),
/// Storage writer error.
UnifiedStorageWriterError(UnifiedStorageWriterError),

/// L1 origin error
#[error("not found")]
L1OriginNotFound(BlockNumber),

/// Head L1 origin error
#[error("not found")]
HeadL1OriginNotFound,
}

impl From<DatabaseError> for ProviderError {
Expand Down

0 comments on commit efa1ca5

Please sign in to comment.