Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
FrancoGiachetta committed Dec 10, 2024
1 parent 799b38b commit fbc6b93
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,7 @@ fn test_deploy_account(
message_segment_length: 0,
n_events: 0,
..BouncerWeights::empty()
}
.into();
};
tx_executor_test_body(state, block_context, tx, expected_bouncer_weights);
}

Expand Down
2 changes: 0 additions & 2 deletions crates/blockifier/src/concurrency/versioned_state_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,6 @@ fn test_run_parallel_txs(default_all_resource_bounds: ValidResourceBounds) {
constructor_calldata: constructor_calldata.clone(),
};
let nonce_manager = &mut NonceManager::default();

let tx = executable_deploy_account_tx(deploy_tx_args, nonce_manager);
let delpoy_account_tx_2 = AccountTransaction::new_for_sequencing(tx);

Expand All @@ -274,7 +273,6 @@ fn test_run_parallel_txs(default_all_resource_bounds: ValidResourceBounds) {
assert_eq!(result.is_err(), enforce_fee); // Transaction fails iff we enforced the fee charge (as the acount is not funded).
});
s.spawn(move || {
delpoy_account_tx_2.execute(&mut state_2, &block_context_2).unwrap();
delpoy_account_tx_2.execute(&mut state_2, &block_context_2).unwrap();
// Check that the constructor wrote ctor_arg to the storage.
let storage_key = get_storage_var_address("ctor_arg", &[]);
Expand Down
4 changes: 2 additions & 2 deletions crates/blockifier/src/state/cached_state_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -456,8 +456,8 @@ fn test_state_cache_commit_and_merge(
let merged_changes =
StateCache::squash_state_diff(state_caches.iter().collect(), comprehensive_state_diff);
if comprehensive_state_diff {
// The comprehensive_state_diff is needed for backward compatibility of versions before
// the allocated keys feature was inserted.
// The comprehensive_state_diff is needed for backward compatibility of versions before the
// allocated keys feature was inserted.
assert_ne!(merged_changes.allocated_keys.is_empty(), charged);
}

Expand Down
1 change: 1 addition & 0 deletions crates/blockifier/src/test_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -371,6 +371,7 @@ pub fn get_tx_resources(tx_type: TransactionType) -> ExecutionResources {
None,
ExecutionSummary::default(),
);

versioned_constants.get_additional_os_tx_resources(tx_type, &starknet_resources, false)
}

Expand Down
1 change: 0 additions & 1 deletion crates/blockifier/src/transaction/test_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,6 @@ pub fn calculate_class_info_for_testing(contract_class: ContractClass) -> ClassI
ContractClass::V0(_) => (0, SierraVersion::DEPRECATED),
ContractClass::V1(_) => (100, SierraVersion::LATEST),
};

ClassInfo::new(&contract_class, sierra_program_length, 100, sierra_version).unwrap()
}

Expand Down

0 comments on commit fbc6b93

Please sign in to comment.