Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(blockifier): revert contract test #2941

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,7 @@ fn test_call_contract_that_panics(runnable_version: RunnableCairo1) {
let to_panic = true.into();
let outer_entry_point_selector = selector_from_name("test_call_contract_revert");
let calldata = create_calldata(
FeatureContract::TestContract(CairoVersion::Cairo1(RunnableCairo1::Casm))
.get_instance_address(0),
test_contract.get_instance_address(0),
"test_revert_helper",
&[new_class_hash.0, to_panic],
);
Expand Down Expand Up @@ -95,18 +94,16 @@ fn test_call_contract_and_than_revert(#[case] runnable_version: RunnableCairo1)
let new_class_hash = empty_contract.get_class_hash();
let to_panic = false.into();

// Call data of contract B
// Calldata of contract B
let middle_call_data = create_calldata(
FeatureContract::TestContract(CairoVersion::Cairo1(RunnableCairo1::Casm))
.get_instance_address(0),
test_contract.get_instance_address(0),
"test_revert_helper",
&[new_class_hash.0, to_panic],
);

// Call data of contract A
// Calldata of contract A
let calldata = create_calldata(
FeatureContract::TestContract(CairoVersion::Cairo1(RunnableCairo1::Casm))
.get_instance_address(0),
test_contract.get_instance_address(0),
"middle_revert_contract",
&middle_call_data.0,
);
Expand Down
Loading