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));