Skip to content

Commit

Permalink
fix(avm-simulator): await avm bytecode check (#8268)
Browse files Browse the repository at this point in the history
  • Loading branch information
fcarreiro authored Aug 29, 2024
1 parent bdd9b06 commit 4410eb3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion yarn-project/simulator/src/avm/avm_simulator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export class AvmSimulator {
*/
public async executeBytecode(bytecode: Buffer): Promise<AvmContractCallResult> {
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));
Expand Down

0 comments on commit 4410eb3

Please sign in to comment.