From ea382e63dc486af2b22cf32dd52f7f8d92f51509 Mon Sep 17 00:00:00 2001 From: benesjan Date: Wed, 24 Jul 2024 10:08:50 +0000 Subject: [PATCH] WIP --- yarn-project/end-to-end/src/guides/dapp_testing.test.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/yarn-project/end-to-end/src/guides/dapp_testing.test.ts b/yarn-project/end-to-end/src/guides/dapp_testing.test.ts index d8658023f60f..062f57a8e09c 100644 --- a/yarn-project/end-to-end/src/guides/dapp_testing.test.ts +++ b/yarn-project/end-to-end/src/guides/dapp_testing.test.ts @@ -196,9 +196,9 @@ describe('guides/dapp/testing', () => { // docs:start:public-storage await token.methods.mint_public(owner.getAddress(), 100n).send().wait(); const ownerPublicBalanceSlot = cheats.aztec.computeSlotInMap(deriveBaseSlot(6n), owner.getAddress()); - const ownerPublicContractStorageIndex = ownerPublicBalanceSlot.x; - const balance = await pxe.getPublicStorageAt(token.address, ownerPublicContractStorageIndex); - expect(balance.value).toEqual(100n); + const ownerPublicBalanceContractStorageIndex = ownerPublicBalanceSlot.x; + const balance = await pxe.getPublicStorageAt(token.address, ownerPublicBalanceContractStorageIndex); + expect(balance.toBigInt()).toEqual(100n); // docs:end:public-storage });