Skip to content

Commit

Permalink
fixup! feat: add os hints tests
Browse files Browse the repository at this point in the history
  • Loading branch information
GMKrieger committed Nov 8, 2024
1 parent d65a9a5 commit 029fd66
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 23 deletions.
12 changes: 1 addition & 11 deletions crates/starknet-os/src/hints/os.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,20 +104,10 @@ mod tests {
#[fixture]
fn os_input() -> StarknetOsInput {
StarknetOsInput {
contract_state_commitment_info: Default::default(),
contract_class_commitment_info: Default::default(),
deprecated_compiled_classes: Default::default(),
compiled_classes: Default::default(),
contracts: Default::default(),
contract_address_to_class_hash: Default::default(),
class_hash_to_compiled_class_hash: Default::default(),
general_config: Default::default(),
transactions: Default::default(),
declared_class_hash_to_component_hashes: Default::default(),
new_block_hash: Felt252::from(3),
prev_block_hash: Felt252::from(1),
compiled_class_visited_pcs: Default::default(),
full_output: true,
..Default::default()
}
}

Expand Down
12 changes: 1 addition & 11 deletions crates/starknet-os/src/hints/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -385,18 +385,8 @@ mod tests {
tree_height: 251_usize,
commitment_facts: Default::default(),
},
deprecated_compiled_classes: Default::default(),
compiled_classes: Default::default(),
contracts: Default::default(),
contract_address_to_class_hash: Default::default(),
class_hash_to_compiled_class_hash: Default::default(),
general_config: Default::default(),
transactions: Default::default(),
declared_class_hash_to_component_hashes: Default::default(),
new_block_hash: Default::default(),
prev_block_hash: Default::default(),
compiled_class_visited_pcs: Default::default(),
full_output: false,
..Default::default()
}
}

Expand Down
2 changes: 1 addition & 1 deletion crates/starknet-os/src/io/input.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ use crate::starknet::business_logic::fact_state::contract_state_objects::Contrac
use crate::starknet::starknet_storage::CommitmentInfo;
use crate::utils::Felt252HexNoPrefix;

#[derive(Debug, Deserialize, Serialize)]
#[derive(Debug, Deserialize, Serialize, Default)]
pub struct StarknetOsInput {
pub contract_state_commitment_info: CommitmentInfo,
pub contract_class_commitment_info: CommitmentInfo,
Expand Down

0 comments on commit 029fd66

Please sign in to comment.