Skip to content

Commit 53488ae

Browse files
Skip_pedersen_comparison_when_checking_pie_compatibility
1 parent 3fb0344 commit 53488ae

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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)