Skip to content

Commit b5b6d74

Browse files
committed
Remove always false run_with_call_header
commit-id:5cdfde88
1 parent c992c73 commit b5b6d74

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
@@ -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 & 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)