File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
crates/cheatnet/src/runtime_extensions/forge_runtime_extension Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -755,7 +755,7 @@ pub fn compute_and_store_execution_summary(trace: &Rc<RefCell<CallTrace>>) -> Ex
755755 let mut current_call_summary =
756756 get_call_execution_summary ( trace) + nested_calls_summaries. into_iter ( ) . sum ( ) ;
757757
758- // vm_resources and gas_consumed of a call already contains the resources of its inner calls.
758+ // vm_resources and gas_consumed of a call already contain the resources of its inner calls.
759759 current_call_summary. charged_resources . vm_resources =
760760 trace. borrow ( ) . used_execution_resources . clone ( ) ;
761761 current_call_summary. charged_resources . gas_consumed =
@@ -768,6 +768,7 @@ pub fn compute_and_store_execution_summary(trace: &Rc<RefCell<CallTrace>>) -> Ex
768768 execution_summary
769769}
770770
771+ // Based on blockifier/src/execution/call_info.rs (summarize)
771772fn get_call_execution_summary ( trace : & Rc < RefCell < CallTrace > > ) -> ExecutionSummary {
772773 let current_call = trace. borrow ( ) ;
773774 ExecutionSummary {
@@ -787,6 +788,7 @@ fn get_call_execution_summary(trace: &Rc<RefCell<CallTrace>>) -> ExecutionSummar
787788 }
788789 event_summary
789790 } ,
791+ // Fields below are not relevant for partial gas calculation.
790792 call_summary : CallSummary :: default ( ) ,
791793 executed_class_hashes : HashSet :: default ( ) ,
792794 visited_storage_entries : HashSet :: default ( ) ,
You can’t perform that action at this time.
0 commit comments