Skip to content

Commit

Permalink
Pad storage addresses passed to getStorageAt() to 66 chars (#404)
Browse files Browse the repository at this point in the history
  • Loading branch information
cameel authored Jan 10, 2023
1 parent 5abc0bb commit 4f7e536
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/libraries/Migration.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 4f7e536

Please sign in to comment.