From 368550d952718d209da7862f5a08f7dbf1e7d73a Mon Sep 17 00:00:00 2001 From: fcarreiro Date: Thu, 29 Aug 2024 14:16:08 +0000 Subject: [PATCH] fix(avm-simulator): await avm bytecode check --- yarn-project/simulator/src/avm/avm_simulator.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yarn-project/simulator/src/avm/avm_simulator.ts b/yarn-project/simulator/src/avm/avm_simulator.ts index e62b2a57c74..581e21f647e 100644 --- a/yarn-project/simulator/src/avm/avm_simulator.ts +++ b/yarn-project/simulator/src/avm/avm_simulator.ts @@ -54,7 +54,7 @@ export class AvmSimulator { */ public async executeBytecode(bytecode: Buffer): Promise { const decompressedBytecode = await decompressBytecodeIfCompressed(bytecode); - assert(isAvmBytecode(decompressedBytecode), "AVM simulator can't execute non-AVM bytecode"); + assert(await isAvmBytecode(decompressedBytecode), "AVM simulator can't execute non-AVM bytecode"); this.bytecode = decompressedBytecode; return await this.executeInstructions(decodeFromBytecode(decompressedBytecode));