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 925040d commit c12f6ca
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)].into_iter())
.join("\n")
.chars()
.take(TRACE_LENGTH_CAP)
.collect::<String>()
)
}
}
Expand Down

0 comments on commit c12f6ca

Please sign in to comment.