Skip to content

Commit

Permalink
Merge branch 'main' into fix/assemble-consts-segment
Browse files Browse the repository at this point in the history
  • Loading branch information
pefontana authored Nov 6, 2024
2 parents 6c23578 + 39ad790 commit 47eece5
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.

#### [2.0.0-rc0] - 2024-10-22

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 47eece5

Please sign in to comment.