From efa1ca57d5c5d5fd22cb0a6e0234a0ba465b4c7b Mon Sep 17 00:00:00 2001 From: maskpp Date: Sun, 3 Nov 2024 06:17:09 +0800 Subject: [PATCH] add l1Origin error enums in ProviderError --- crates/storage/errors/src/provider.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/crates/storage/errors/src/provider.rs b/crates/storage/errors/src/provider.rs index d60a2adb92bb..6ebdb5c4d3dd 100644 --- a/crates/storage/errors/src/provider.rs +++ b/crates/storage/errors/src/provider.rs @@ -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 for ProviderError {