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 d9a20c2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
## Cairo-VM Changelog

#### Upcoming Changes
* fix: [#1855](https://github.com/lambdaclass/cairo-vm/pull/1855):
* Adds logic to skip pedersen additional data comparison when checking pie compatibility.

* feat(BREAKING): [#1824](https://github.com/lambdaclass/cairo-vm/pull/1824)[#1838](https://github.com/lambdaclass/cairo-vm/pull/1838):
* Add support for dynamic layout
Expand Down
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 d9a20c2

Please sign in to comment.