Skip to content

Commit

Permalink
fix async executions in avm
Browse files Browse the repository at this point in the history
  • Loading branch information
mikebenfield committed Dec 9, 2024
1 parent 42c37a9 commit 6f690f3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions interpreter/src/cursor_aleo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,7 @@ impl Cursor<'_> {
let name = snarkvm_identifier_to_symbol(async_.function_name());
let arguments: Vec<Value> = 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 {
Expand Down

0 comments on commit 6f690f3

Please sign in to comment.