Skip to content

Commit 529bfc9

Browse files
committed
Remove always false run_with_call_header
commit-id:5cdfde88
1 parent e508614 commit 529bfc9

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

crates/cheatnet/src/state.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,6 @@ impl<T> CheatStatus<T> {
173173
/// Tree structure representing trace of a call.
174174
#[derive(Debug)]
175175
pub struct CallTrace {
176-
pub run_with_call_header: bool,
177176
// only these are serialized
178177
pub entry_point: CallEntryPoint,
179178
pub nested_calls: Vec<CallTraceNode>,
@@ -207,7 +206,6 @@ impl CairoSerialize for CallTrace {
207206
impl CallTrace {
208207
fn default_successful_call() -> Self {
209208
Self {
210-
run_with_call_header: false,
211209
entry_point: CallEntryPoint::default(),
212210
used_execution_resources: ExecutionResources::default(),
213211
used_l1_resources: L1Resources::default(),
@@ -354,8 +352,6 @@ impl Default for CheatnetState {
354352
ClassHash(TryFromHexStr::try_from_hex_str(TEST_CONTRACT_CLASS_HASH).unwrap());
355353
let test_call = Rc::new(RefCell::new(CallTrace {
356354
entry_point: test_code_entry_point.into(),
357-
// TODO this field could be removed entirely
358-
run_with_call_header: false,
359355
..CallTrace::default_successful_call()
360356
}));
361357
Self {
@@ -495,7 +491,6 @@ impl TraceData {
495491
pub fn enter_nested_call(&mut self, entry_point: CallEntryPoint, cheated_data: CheatedData) {
496492
let new_call = Rc::new(RefCell::new(CallTrace {
497493
entry_point,
498-
run_with_call_header: false,
499494
..CallTrace::default_successful_call()
500495
}));
501496
let current_call = self.current_call_stack.top();

crates/forge-runner/src/build_trace_data.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ pub fn build_profiler_call_trace(
5050
vm_trace,
5151
contracts_data,
5252
versioned_program_path,
53-
value.run_with_call_header,
5453
);
5554

5655
ProfilerCallTrace {
@@ -75,15 +74,14 @@ fn build_cairo_execution_info(
7574
vm_trace: Option<Vec<ProfilerTraceEntry>>,
7675
contracts_data: &ContractsData,
7776
versioned_program_path: &Utf8Path,
78-
run_with_call_header: bool,
7977
) -> Option<CairoExecutionInfo> {
8078
let contract_name = get_contract_name(entry_point.class_hash, contracts_data);
8179
let source_sierra_path = contract_name
8280
.and_then(|name| get_source_sierra_path(&name, contracts_data, versioned_program_path));
8381

8482
Some(CairoExecutionInfo {
8583
casm_level_info: CasmLevelInfo {
86-
run_with_call_header,
84+
run_with_call_header: false,
8785
vm_trace: vm_trace?,
8886
},
8987
source_sierra_path: source_sierra_path?,

0 commit comments

Comments
 (0)