From 60163edb0b898ad6fed2c19a857c23f609a975fa Mon Sep 17 00:00:00 2001 From: fcarreiro Date: Wed, 27 Mar 2024 10:43:02 +0000 Subject: [PATCH] wip --- .../simulator/src/avm/temporary_executor_migration.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/yarn-project/simulator/src/avm/temporary_executor_migration.ts b/yarn-project/simulator/src/avm/temporary_executor_migration.ts index 2d226c7de489..8e739f256361 100644 --- a/yarn-project/simulator/src/avm/temporary_executor_migration.ts +++ b/yarn-project/simulator/src/avm/temporary_executor_migration.ts @@ -95,7 +95,9 @@ export function temporaryConvertAvmResults( const nestedExecutions: PublicExecutionResult[] = []; const nullifierReadRequests: ReadRequest[] = []; const nullifierNonExistentReadRequests: ReadRequest[] = []; - const newNullifiers: SideEffectLinkedToNoteHash[] = []; + const newNullifiers: SideEffectLinkedToNoteHash[] = newWorldState.newNullifiers.map( + (nullifier, i) => new SideEffectLinkedToNoteHash(nullifier.toField(), Fr.zero(), new Fr(i + 1)), + ); const unencryptedLogs = UnencryptedFunctionL2Logs.empty(); const newL2ToL1Messages = newWorldState.newL1Messages.map(() => L2ToL1Message.empty()); // TODO keep track of side effect counters