Skip to content

Commit 5c054f6

Browse files
Merge branch 'main' into idanh/bump_starknet_crypto_to_0.7.4
2 parents 2f27437 + 5641002 commit 5c054f6

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

crates/cairo-program-runner-lib/src/hints/bootloader_hints.rs

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -153,17 +153,17 @@ pub fn load_bootloader_config(
153153
.collect();
154154

155155
let supported_verifier_hashes: Vec<Box<dyn Any>> = config
156-
.supported_cairo_verifier_program_hash_list
156+
.supported_cairo_verifier_program_hashes
157157
.iter()
158158
.map(|h| Box::new(MaybeRelocatable::from(h)) as Box<dyn Any>)
159159
.collect();
160160

161161
let args: Vec<Box<dyn Any>> = vec![
162162
maybe_relocatable_box!(config.supported_simple_bootloader_hash_list.len()),
163163
any_box!(supported_simple_bootloader_hashes),
164-
maybe_relocatable_box!(config.supported_cairo_verifier_program_hash_list.len()),
164+
maybe_relocatable_box!(config.supported_cairo_verifier_program_hashes.len()),
165165
any_box!(supported_verifier_hashes),
166-
maybe_relocatable_box!(config.supported_applicative_bootloader_program_hash),
166+
maybe_relocatable_box!(config.applicative_bootloader_program_hash),
167167
];
168168

169169
// Store the args in the VM memory
@@ -318,7 +318,7 @@ pub fn compute_and_configure_fact_topologies(
318318
let bootloader_input: BootloaderInput = exec_scopes.get(vars::BOOTLOADER_INPUT)?;
319319
let applicative_bootloader_program_hash = bootloader_input
320320
.bootloader_config
321-
.supported_applicative_bootloader_program_hash;
321+
.applicative_bootloader_program_hash;
322322

323323
let plain_fact_topologies = compute_fact_topologies(
324324
&packed_outputs,
@@ -520,8 +520,8 @@ mod tests {
520520
Felt252::from(1234),
521521
Felt252::from(5678),
522522
],
523-
supported_applicative_bootloader_program_hash: Felt252::from(2222),
524-
supported_cairo_verifier_program_hash_list: vec![
523+
applicative_bootloader_program_hash: Felt252::from(2222),
524+
supported_cairo_verifier_program_hashes: vec![
525525
Felt252::from(3333),
526526
Felt252::from(4444),
527527
Felt252::from(5555),
@@ -748,7 +748,7 @@ mod tests {
748748
// Assert that the cairo verifier program hashes segment length matches the expected length
749749
assert!(matches!(
750750
cairo_verifier_program_hashes_segment_len,
751-
x if x == config.supported_cairo_verifier_program_hash_list.len()
751+
x if x == config.supported_cairo_verifier_program_hashes.len()
752752
));
753753

754754
// Assert that the cairo verifier program hashes segment contains the expected hashes
@@ -762,14 +762,14 @@ mod tests {
762762
.unwrap();
763763
for (i, hash) in cairo_verifier_hash_list_segment.iter().enumerate() {
764764
assert!(
765-
matches!(hash, MaybeRelocatable::Int(x) if *x == config.supported_cairo_verifier_program_hash_list[i])
765+
matches!(hash, MaybeRelocatable::Int(x) if *x == config.supported_cairo_verifier_program_hashes[i])
766766
);
767767
}
768768

769769
// Assert that the applicative bootloader program hash matches the expected value
770770
assert!(
771771
matches!(applicative_bootloader_program_hash, MaybeRelocatable::Int(x) if *x ==
772-
config.supported_applicative_bootloader_program_hash)
772+
config.applicative_bootloader_program_hash)
773773
);
774774
}
775775

@@ -953,8 +953,8 @@ mod tests {
953953
},
954954
bootloader_config: BootloaderConfig {
955955
supported_simple_bootloader_hash_list: vec![Felt252::from(1234)],
956-
supported_cairo_verifier_program_hash_list: Default::default(),
957-
supported_applicative_bootloader_program_hash: Felt252::from(2222),
956+
supported_cairo_verifier_program_hashes: Default::default(),
957+
applicative_bootloader_program_hash: Felt252::from(2222),
958958
},
959959
packed_outputs: packed_outputs.clone(),
960960
};

crates/cairo-program-runner-lib/src/hints/types.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ pub(crate) type ProgramIdentifiers = HashMap<String, Identifier>;
2929
#[derive(Deserialize, Debug, Clone)]
3030
pub struct BootloaderConfig {
3131
pub supported_simple_bootloader_hash_list: Vec<Felt252>,
32-
pub supported_applicative_bootloader_program_hash: Felt252,
33-
pub supported_cairo_verifier_program_hash_list: Vec<Felt252>,
32+
pub applicative_bootloader_program_hash: Felt252,
33+
pub supported_cairo_verifier_program_hashes: Vec<Felt252>,
3434
}
3535

3636
pub const BOOTLOADER_CONFIG_SIZE: usize = 3;

0 commit comments

Comments
 (0)