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 21, 2024
1 parent da3be39 commit b1a7928
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 @@ -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::<String>()
)
}
}
Expand Down

0 comments on commit b1a7928

Please sign in to comment.