Skip to content

Commit

Permalink
feat(blockifier): limit characters in cairo1 revert trace
Browse files Browse the repository at this point in the history
  • Loading branch information
dorimedini-starkware committed Oct 20, 2024
1 parent a94d27b commit c126f53
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions crates/blockifier/src/execution/stack_trace.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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::<String>()
)
}
}
Expand Down

0 comments on commit c126f53

Please sign in to comment.