From 569c81054e0e1eb8f2fdae9d73f004d0f2afd508 Mon Sep 17 00:00:00 2001 From: radik878 Date: Tue, 21 Oct 2025 23:31:11 +0300 Subject: [PATCH] fix(chisel): avoid panic in format_token by handling Function/CustomStruct --- crates/chisel/src/executor.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/chisel/src/executor.rs b/crates/chisel/src/executor.rs index a06ac427f136a..a9bc115c0d36a 100644 --- a/crates/chisel/src/executor.rs +++ b/crates/chisel/src/executor.rs @@ -335,8 +335,8 @@ fn format_token(token: DynSolValue) -> String { out.push_str(&')'.red().to_string()); out } - _ => { - unimplemented!() + t @ (DynSolValue::Function(_) | DynSolValue::CustomStruct { .. }) => { + foundry_common::fmt::format_token(&t) } } }