Skip to content

Commit 581177a

Browse files
committed
Remove always false run_with_call_header
commit-id:5cdfde88
1 parent 9d5b51e commit 581177a

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

crates/cheatnet/src/state.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,6 @@ impl<T> CheatStatus<T> {
162162
/// Tree structure representing trace of a call.
163163
#[derive(Debug)]
164164
pub struct CallTrace {
165-
pub run_with_call_header: bool,
166165
// only these are serialized
167166
pub entry_point: CallEntryPoint,
168167
pub nested_calls: Vec<CallTraceNode>,
@@ -196,7 +195,6 @@ impl CairoSerialize for CallTrace {
196195
impl CallTrace {
197196
fn default_successful_call() -> Self {
198197
Self {
199-
run_with_call_header: false,
200198
entry_point: CallEntryPoint::default(),
201199
used_execution_resources: ExecutionResources::default(),
202200
used_l1_resources: L1Resources::default(),
@@ -343,8 +341,6 @@ impl Default for CheatnetState {
343341
ClassHash(TryFromHexStr::try_from_hex_str(TEST_CONTRACT_CLASS_HASH).unwrap());
344342
let test_call = Rc::new(RefCell::new(CallTrace {
345343
entry_point: test_code_entry_point.into(),
346-
// TODO this field could be removed entirely
347-
run_with_call_header: false,
348344
..CallTrace::default_successful_call()
349345
}));
350346
Self {
@@ -480,7 +476,6 @@ impl TraceData {
480476
pub fn enter_nested_call(&mut self, entry_point: CallEntryPoint, cheated_data: CheatedData) {
481477
let new_call = Rc::new(RefCell::new(CallTrace {
482478
entry_point,
483-
run_with_call_header: false,
484479
..CallTrace::default_successful_call()
485480
}));
486481
let current_call = self.current_call_stack.top();

crates/forge-runner/src/build_trace_data.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ pub fn build_profiler_call_trace(
5050
vm_trace,
5151
contracts_data,
5252
versioned_program_path,
53-
value.run_with_call_header,
53+
false,
5454
);
5555

5656
ProfilerCallTrace {

0 commit comments

Comments
 (0)