Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
benesjan committed Jul 24, 2024
1 parent 56b1632 commit ea382e6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions yarn-project/end-to-end/src/guides/dapp_testing.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
});

Expand Down

0 comments on commit ea382e6

Please sign in to comment.