From af331c7140e2f74fe626061f7a525b497afc48cb Mon Sep 17 00:00:00 2001 From: kent-3 <100624004+kent-3@users.noreply.github.com> Date: Fri, 18 Oct 2024 20:53:42 -0400 Subject: [PATCH] add a generic error variant --- secretrs/src/utils/error.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/secretrs/src/utils/error.rs b/secretrs/src/utils/error.rs index 5f9060d..42e80f8 100644 --- a/secretrs/src/utils/error.rs +++ b/secretrs/src/utils/error.rs @@ -6,6 +6,8 @@ use derive_more::From; #[derive(Debug, From)] pub enum Error { + #[from] + Other(String), EmptyCiphertext, InvalidCodeHash, InvalidChainId {