From 6f690f3b1e2d20f61f99b801d3c57da18629e18e Mon Sep 17 00:00:00 2001 From: Michael Benfield Date: Mon, 9 Dec 2024 12:01:22 -0800 Subject: [PATCH] fix async executions in avm --- interpreter/src/cursor_aleo.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/interpreter/src/cursor_aleo.rs b/interpreter/src/cursor_aleo.rs index 4f535ee2c5..bf6a3cf25f 100644 --- a/interpreter/src/cursor_aleo.rs +++ b/interpreter/src/cursor_aleo.rs @@ -309,6 +309,7 @@ impl Cursor<'_> { let name = snarkvm_identifier_to_symbol(async_.function_name()); let arguments: Vec = async_.operands().iter().map(|op| self.operand_value(op)).collect(); if self.really_async { + self.increment_instruction_index(); let async_ex = AsyncExecution { function: GlobalId { name, program }, arguments }; (Value::Future(Future(vec![async_ex])), async_.destinations()[0].clone()) } else {