Skip to content

Commit 48c9e68

Browse files
committed
Add comment
1 parent 3a999a8 commit 48c9e68

File tree

1 file changed

+4
-0
lines changed
  • crates/cheatnet/src/runtime_extensions/forge_runtime_extension

1 file changed

+4
-0
lines changed

crates/cheatnet/src/runtime_extensions/forge_runtime_extension/mod.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -555,6 +555,10 @@ impl<'a> ExtensionLogic for ForgeExtension<'a> {
555555
Ok(CheatcodeHandlingResult::from_serializable(()))
556556
}
557557
"get_current_vm_step" => {
558+
// Each contract call is executed in separate VM, hence all VM steps
559+
// are calculated as sum of steps from calls + current VM steps.
560+
// Since syscalls are added to VM resources after the execution, we need
561+
// to include them manually here.
558562
let top_call = extended_runtime
559563
.extended_runtime
560564
.extension

0 commit comments

Comments
 (0)