Skip to content

Commit

Permalink
Add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
kkawula committed Nov 4, 2024
1 parent a3fdf0d commit b2e84c4
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ pub fn try_extract_panic_data(err: &str) -> Option<Vec<Felt252>> {
let re_string = Regex::new(r#"(?s)Execution failed\. Failure reason: "(.*?)"\."#)
.expect("Could not create string panic_data matching regex");

// CairoVM returns felts padded to 64 characters after 0x, unlike the spec's 63.
// This regex (0x[a-fA-F0-9]{0,64}) handles the padded form and is different from the spec.
let re_entry_point = Regex::new(
r"Entry point EntryPointSelector\((0x[a-fA-F0-9]{0,64})\) not found in contract\.",
)
Expand Down

0 comments on commit b2e84c4

Please sign in to comment.