Skip to content

Commit 39ad790

Browse files
Skip_pedersen_comparison_when_checking_pie_compatibility (#1855)
Co-authored-by: Pedro Fontana <[email protected]>
1 parent 159f67d commit 39ad790

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
## Cairo-VM Changelog
22

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

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

vm/src/vm/runners/cairo_pie.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,10 @@ impl CairoPie {
289289
return Err(CairoPieValidationError::DiffAdditionalData);
290290
}
291291
for (name, data) in self.additional_data.0.iter() {
292+
// As documented above, we skip the pedersen field when comparing.
293+
if *name == BuiltinName::pedersen {
294+
continue;
295+
}
292296
if !pie.additional_data.0.get(name).is_some_and(|d| d == data) {
293297
return Err(CairoPieValidationError::DiffAdditionalDataForBuiltin(*name));
294298
}

0 commit comments

Comments
 (0)