From 9c3140ef48eed2c1b60b828bbf6f55328b259bd4 Mon Sep 17 00:00:00 2001 From: Maddiaa0 <47148561+Maddiaa0@users.noreply.github.com> Date: Tue, 30 Jan 2024 23:01:02 +0000 Subject: [PATCH] fix: find and replace thingy --- .../acir-simulator/src/avm/opcodes/external_calls.test.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/yarn-project/acir-simulator/src/avm/opcodes/external_calls.test.ts b/yarn-project/acir-simulator/src/avm/opcodes/external_calls.test.ts index e725b2233720..50c29128ec55 100644 --- a/yarn-project/acir-simulator/src/avm/opcodes/external_calls.test.ts +++ b/yarn-project/acir-simulator/src/avm/opcodes/external_calls.test.ts @@ -78,10 +78,10 @@ describe('External Calls', () => { expect(retValue).toEqual([new Field(1n), new Field(2n)]); // Check that the storage call has been merged into the parent journal - const { currentStorageValue: storageWrites } = journal.flush(); - expect(storageWrites.size).toEqual(1); + const { currentStorageValue } = journal.flush(); + expect(currentStorageValue.size).toEqual(1); - const nestedContractWrites = storageWrites.get(addr.toBigInt()); + const nestedContractWrites = currentStorageValue.get(addr.toBigInt()); expect(nestedContractWrites).toBeDefined(); const slotNumber = 1n;