From f8ee6447ed2dc75f86f1dc162b8926975c7bab27 Mon Sep 17 00:00:00 2001 From: Nick Johnson Date: Tue, 10 Oct 2023 11:17:48 +0100 Subject: [PATCH] Add test for uninitialized dynamic values --- l1-verifier/test/testL1Verifier.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/l1-verifier/test/testL1Verifier.ts b/l1-verifier/test/testL1Verifier.ts index d19ab90f..0e59fa4b 100644 --- a/l1-verifier/test/testL1Verifier.ts +++ b/l1-verifier/test/testL1Verifier.ts @@ -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(""); }) });