Skip to content

Commit

Permalink
Add test for uninitialized dynamic values
Browse files Browse the repository at this point in the history
  • Loading branch information
Arachnid committed Oct 10, 2023
1 parent 1463d60 commit f8ee644
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions l1-verifier/test/testL1Verifier.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,5 +134,10 @@ describe('L1Verifier', () => {
it('treats uninitialized storage elements as zeroes', async () => {
const result = await target.getZero({ enableCcipRead: true });
expect(Number(result)).to.equal(0);
});

it('treats uninitialized dynamic values as empty strings', async () => {
const result = await target.getNickname('Santa', { enableCcipRead: true });
expect(result).to.equal("");
})
});

0 comments on commit f8ee644

Please sign in to comment.