Skip to content

Commit

Permalink
chore(blockifier): remove unnecessary code from test (#2098)
Browse files Browse the repository at this point in the history
  • Loading branch information
Yoni-Starkware authored Nov 17, 2024
1 parent 863c886 commit 86461e3
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions crates/blockifier/src/execution/syscalls/syscall_tests/deploy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,12 +106,7 @@ fn with_constructor(
expected_gas: u64,
expected_constructor_gas: u64,
) {
let empty_contract = FeatureContract::Empty(CairoVersion::Cairo1);
let mut state = test_state(
&ChainInfo::create_for_testing(),
Fee(0),
&[(deployer_contract, 1), (empty_contract, 0)],
);
let mut state = test_state(&ChainInfo::create_for_testing(), Fee(0), &[(deployer_contract, 1)]);

let class_hash = deployer_contract.get_class_hash();
let constructor_calldata = vec![
Expand Down Expand Up @@ -168,12 +163,7 @@ fn with_constructor(
test_case(FeatureContract::TestContract(CairoVersion::Native);"Native")
)]
fn to_unavailable_address(deployer_contract: FeatureContract) {
let empty_contract = FeatureContract::Empty(CairoVersion::Cairo1);
let mut state = test_state(
&ChainInfo::create_for_testing(),
Fee(0),
&[(deployer_contract, 1), (empty_contract, 0)],
);
let mut state = test_state(&ChainInfo::create_for_testing(), Fee(0), &[(deployer_contract, 1)]);

let class_hash = deployer_contract.get_class_hash();
let constructor_calldata = vec![
Expand Down

0 comments on commit 86461e3

Please sign in to comment.