Skip to content

Commit 7973059

Browse files
starknet_os_flow_tests: migrate test_reverted_invoke_tx
1 parent 2e9f509 commit 7973059

40 files changed

+31167
-36872
lines changed

crates/blockifier/src/bouncer_test.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -744,11 +744,11 @@ fn class_hash_migration_data_from_state(
744744

745745
if should_migrate {
746746
expect![[r#"
747-
89892468
747+
86774273
748748
"#]]
749749
.assert_debug_eq(&migration_sierra_gas.0);
750750
expect![[r#"
751-
205759633
751+
198638149
752752
"#]]
753753
.assert_debug_eq(&migration_proving_gas.0);
754754
} else {

crates/blockifier/src/execution/stack_trace_regression/test_contract_ctor_frame_stack_trace_cairo1_casm.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
Transaction execution has failed:
22
0: Error in the called contract (contract address: 0x00000000000000000000000000000000000000000000000000000000c0020000, class hash: 0x0000000000000000000000000000000000000000000000000000000080020000, selector: 0x015d40a3d6ca2ac30f4031e42be28da9b056fef9bb7357ac5e85627ee876e5ad):
3-
Error at pc=0:544:
3+
Error at pc=0:539:
44
1: Error in the called contract (contract address: 0x00000000000000000000000000000000000000000000000000000000c0020000, class hash: 0x0000000000000000000000000000000000000000000000000000000080020000, selector: 0x02730079d734ee55315f4f141eaed376bddd8c2133523d223a344c5604e0f7f8):
5-
Error at pc=0:782:
5+
Error at pc=0:781:
66
2: Error in the contract class constructor (contract address: 0x0103ee82605273496eed8d9141c5b3ad967baa08be63aa5bc49ffae5eae454cc, class hash: 0x0000000000000000000000000000000000000000000000000000000080040000, selector: 0x028ffe4ff0f226a9107253e17a904099aa4f63a02a5621de0576e5aa71bc5194):
77
Execution failed. Failure reason:
88
Error in contract (contract address: 0x0103ee82605273496eed8d9141c5b3ad967baa08be63aa5bc49ffae5eae454cc, class hash: 0x0000000000000000000000000000000000000000000000000000000080040000, selector: 0x028ffe4ff0f226a9107253e17a904099aa4f63a02a5621de0576e5aa71bc5194):

crates/blockifier/src/execution/syscalls/syscall_tests/call_contract.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ fn test_call_contract(outer_contract: FeatureContract, inner_contract: FeatureCo
249249
l2_to_l1_messages: [],
250250
cairo_native: false,
251251
failed: false,
252-
gas_consumed: 129870,
252+
gas_consumed: 129070,
253253
}
254254
"#]]
255255
.assert_debug_eq(&execution);
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
pub const REQUIRED_GAS_GET_BLOCK_HASH_TEST: u64 = 15220;
1+
pub const REQUIRED_GAS_GET_BLOCK_HASH_TEST: u64 = 14920;

crates/blockifier/src/execution/syscalls/syscall_tests/deploy.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ fn no_constructor(runnable_version: RunnableCairo1) {
5252
l2_to_l1_messages: [],
5353
cairo_native: false,
5454
failed: false,
55-
gas_consumed: 156540,
55+
gas_consumed: 156240,
5656
}
5757
"#]]
5858
.assert_debug_eq(&deploy_call.execution);
@@ -136,7 +136,7 @@ fn with_constructor(runnable_version: RunnableCairo1) {
136136
l2_to_l1_messages: [],
137137
cairo_native: false,
138138
failed: false,
139-
gas_consumed: 184620,
139+
gas_consumed: 183920,
140140
}
141141
"#]]
142142
.assert_debug_eq(&deploy_call.execution);
@@ -156,7 +156,7 @@ fn with_constructor(runnable_version: RunnableCairo1) {
156156
l2_to_l1_messages: [],
157157
cairo_native: false,
158158
failed: false,
159-
gas_consumed: 14640,
159+
gas_consumed: 14440,
160160
}
161161
"#]]
162162
.assert_debug_eq(&constructor_call.execution);

crates/blockifier/src/execution/syscalls/syscall_tests/emit_event.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ fn positive_flow(runnable_version: RunnableCairo1) {
7171
l2_to_l1_messages: [],
7272
cairo_native: false,
7373
failed: false,
74-
gas_consumed: 34580,
74+
gas_consumed: 33010,
7575
}
7676
"#]]
7777
.assert_debug_eq(&call_info.execution);

crates/blockifier/src/execution/syscalls/syscall_tests/get_block_hash.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ fn positive_flow(runnable_version: RunnableCairo1) {
8383
l2_to_l1_messages: [],
8484
cairo_native: false,
8585
failed: false,
86-
gas_consumed: 15220,
86+
gas_consumed: 14920,
8787
}
8888
"#]]
8989
.assert_debug_eq(&call_info.execution);

crates/blockifier/src/execution/syscalls/syscall_tests/get_class_hash_at.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ fn test_get_class_hash_at(runnable_version: RunnableCairo1) {
5151
l2_to_l1_messages: [],
5252
cairo_native: false,
5353
failed: false,
54-
gas_consumed: 16460,
54+
gas_consumed: 15960,
5555
}
5656
"#]]
5757
.assert_debug_eq(&positive_call_info.execution);

crates/blockifier/src/execution/syscalls/syscall_tests/keccak.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ fn test_keccak(runnable_version: RunnableCairo1) {
3838
l2_to_l1_messages: [],
3939
cairo_native: false,
4040
failed: false,
41-
gas_consumed: 236667,
41+
gas_consumed: 228627,
4242
}
4343
"#]]
4444
.assert_debug_eq(&execution);

crates/blockifier/src/execution/syscalls/syscall_tests/library_call.rs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ fn test_library_call(runnable_version: RunnableCairo1) {
5757
l2_to_l1_messages: [],
5858
cairo_native: false,
5959
failed: false,
60-
gas_consumed: 127470,
60+
gas_consumed: 126670,
6161
}
6262
"#]]
6363
.assert_debug_eq(&execution);
@@ -101,7 +101,7 @@ fn test_library_call_assert_fails(runnable_version: RunnableCairo1) {
101101
l2_to_l1_messages: [],
102102
cairo_native: false,
103103
failed: true,
104-
gas_consumed: 111020,
104+
gas_consumed: 110520,
105105
}
106106
"#]]
107107
.assert_debug_eq(&call_info.execution);
@@ -146,7 +146,7 @@ fn test_nested_library_call(runnable_version: RunnableCairo1) {
146146
..trivial_external_entry_point_new(test_contract)
147147
};
148148
let expected_nested_initial_gas = expect![[r#"
149-
9999081600
149+
9999083710
150150
"#]];
151151
let nested_storage_entry_point = CallEntryPoint {
152152
entry_point_selector: inner_entry_point_selector,
@@ -158,7 +158,7 @@ fn test_nested_library_call(runnable_version: RunnableCairo1) {
158158
..trivial_external_entry_point_new(test_contract)
159159
};
160160
let expected_library_initial_gas = expect![[r#"
161-
9999182620
161+
9999184230
162162
"#]];
163163
let library_entry_point = CallEntryPoint {
164164
entry_point_selector: outer_entry_point_selector,
@@ -176,7 +176,7 @@ fn test_nested_library_call(runnable_version: RunnableCairo1) {
176176
..trivial_external_entry_point_new(test_contract)
177177
};
178178
let expected_storage_initial_gas = expect![[r#"
179-
9998975990
179+
9998978400
180180
"#]];
181181
let storage_entry_point = CallEntryPoint {
182182
calldata: calldata![felt!(key), felt!(value)],
@@ -191,7 +191,7 @@ fn test_nested_library_call(runnable_version: RunnableCairo1) {
191191
);
192192

193193
let expected_nested_gas_consumed = expect![[r#"
194-
26450
194+
26150
195195
"#]];
196196
let nested_storage_call_info = CallInfo {
197197
call: nested_storage_entry_point,
@@ -212,7 +212,7 @@ fn test_nested_library_call(runnable_version: RunnableCairo1) {
212212
};
213213

214214
let expected_library_call_gas_consumed = expect![[r#"
215-
127470
215+
126670
216216
"#]];
217217
let library_call_info = CallInfo {
218218
call: library_entry_point,
@@ -229,7 +229,7 @@ fn test_nested_library_call(runnable_version: RunnableCairo1) {
229229
};
230230

231231
let expected_storage_call_gas_consumed = expect![[r#"
232-
26450
232+
26150
233233
"#]];
234234
let storage_call_info = CallInfo {
235235
call: storage_entry_point,
@@ -250,7 +250,7 @@ fn test_nested_library_call(runnable_version: RunnableCairo1) {
250250
};
251251

252252
let expected_main_gas_consumed = expect![[r#"
253-
342890
253+
340190
254254
"#]];
255255
let expected_call_info = CallInfo {
256256
call: main_entry_point.clone(),

0 commit comments

Comments
 (0)