From 4f7e5361af67e643848af9724bf20a8b4e78045e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kamil=20=C5=9Aliwak?= Date: Tue, 10 Jan 2023 10:37:33 +0100 Subject: [PATCH] Pad storage addresses passed to getStorageAt() to 66 chars (#404) --- test/libraries/Migration.spec.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/libraries/Migration.spec.ts b/test/libraries/Migration.spec.ts index 213baa744..ff1941316 100644 --- a/test/libraries/Migration.spec.ts +++ b/test/libraries/Migration.spec.ts @@ -46,9 +46,9 @@ describe("Migration", async () => { const { safe, migration, singleton120 } = await setupTests() // The emit matcher checks the address, which is the Safe as delegatecall is used const migrationSafe = migration.attach(safe.address) - + await expect( - await ethers.provider.getStorageAt(safe.address, "0x06") + await ethers.provider.getStorageAt(safe.address, "0x" + "".padEnd(62, "0") + "06") ).to.be.eq("0x" + "".padEnd(64, "0")) await expect(