Skip to content

Commit

Permalink
Skip_pedersen_comparison_when_checking_pie_compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
YairVaknin-starkware committed Oct 18, 2024
1 parent 3fb0344 commit 53488ae
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions vm/src/vm/runners/cairo_pie.rs
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,10 @@ impl CairoPie {
return Err(CairoPieValidationError::DiffAdditionalData);
}
for (name, data) in self.additional_data.0.iter() {
// As documented above, we skip the pedersen field when comparing.
if *name == BuiltinName::pedersen {
continue;
}
if !pie.additional_data.0.get(name).is_some_and(|d| d == data) {
return Err(CairoPieValidationError::DiffAdditionalDataForBuiltin(*name));
}
Expand Down

0 comments on commit 53488ae

Please sign in to comment.