From 606b2691dad1ba3f5fb251ff8fb3a56a12e00161 Mon Sep 17 00:00:00 2001 From: alenmestrov Date: Fri, 8 Nov 2024 16:56:30 +0100 Subject: [PATCH] fix: updated code for tests --- contracts/context-config/src/mutate.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/contracts/context-config/src/mutate.rs b/contracts/context-config/src/mutate.rs index cd0b4ac62..9c3aa6eda 100644 --- a/contracts/context-config/src/mutate.rs +++ b/contracts/context-config/src/mutate.rs @@ -428,7 +428,8 @@ impl ContextConfigs { #[callback_result] call_result: Result<(), PromiseError>, ) -> Result<(), &'static str> { if let Err(e) = call_result { - panic!("Failed to update proxy contract: {:?}", e); + env::log_str(&format!("Failed to update proxy contract: {:?}", e)); + return Err("Failed to update proxy contract"); } Ok(())