We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3a999a8 commit 48c9e68Copy full SHA for 48c9e68
crates/cheatnet/src/runtime_extensions/forge_runtime_extension/mod.rs
@@ -555,6 +555,10 @@ impl<'a> ExtensionLogic for ForgeExtension<'a> {
555
Ok(CheatcodeHandlingResult::from_serializable(()))
556
}
557
"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.
562
let top_call = extended_runtime
563
.extended_runtime
564
.extension
0 commit comments