Skip to content

Commit

Permalink
Implement extend_additional_data for enum
Browse files Browse the repository at this point in the history
  • Loading branch information
fmoletta committed Apr 19, 2024
1 parent 301557d commit 1214c9f
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions vm/src/vm/runners/builtin_runner/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -508,6 +508,18 @@ impl BuiltinRunner {
}
}

pub fn extend_additional_data(
&mut self,
additional_data: &BuiltinAdditionalData,
) -> Result<(), RunnerError> {
match self {
BuiltinRunner::Hash(builtin) => builtin.extend_additional_data(additional_data),
BuiltinRunner::Output(builtin) => builtin.extend_additional_data(additional_data),
BuiltinRunner::Signature(builtin) => builtin.extend_additional_data(additional_data),
_ => Ok(()),
}
}

// Returns information about the builtin that should be added to the AIR private input.
pub fn air_private_input(&self, segments: &MemorySegmentManager) -> Vec<PrivateInput> {
match self {
Expand Down

0 comments on commit 1214c9f

Please sign in to comment.