From 586d8e86a6ab6a79057e8170e5af177ddaed6dec Mon Sep 17 00:00:00 2001 From: Dori Medini Date: Sun, 20 Oct 2024 11:50:38 +0300 Subject: [PATCH] feat(blockifier): limit characters in cairo1 revert trace --- crates/blockifier/src/execution/stack_trace.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/crates/blockifier/src/execution/stack_trace.rs b/crates/blockifier/src/execution/stack_trace.rs index 82ac0ba88b..4a3adeb768 100644 --- a/crates/blockifier/src/execution/stack_trace.rs +++ b/crates/blockifier/src/execution/stack_trace.rs @@ -206,6 +206,9 @@ impl Display for Cairo1RevertStack { .map(|frame| frame.to_string()) .chain([format_panic_data(&self.last_retdata.0)]) .join("\n") + .chars() + .take(TRACE_LENGTH_CAP) + .collect::() ) } }