From b1a79283ed556b7ad33205bdcb646188ec817547 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 6a404c17c4..81529aec47 100644 --- a/crates/blockifier/src/execution/stack_trace.rs +++ b/crates/blockifier/src/execution/stack_trace.rs @@ -204,6 +204,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::() ) } }