~/talk

The Death of the __gap: Custom Storage Layouts

Talkat Solidity Summit 2025 · on Tuesday, 2025-11-18· [smart-contracts]
links:none on file
slides:none on file

Shows how hardcoded storage gap (50 slots) patterns break upgrades with concrete examples (worms/insects swapped, Audience lost $6M in 2022 after a bad upgrade), and demonstrates using layout at in 0.8.29 plus ERC-7201 namespaced storage to relocate each contract’s storage slot. Current tooling requires assembly, manual getters and only one layout per inheritance tree; proposed Solidity extensions let each contract declare its own layout slot so upgrades and multiple inherited modules keep correct, noncolliding storage and the examples work.

AI-written summary · about

  1. 0:00Upgradeable smart contracts intro
  2. 1:05Storage layout upgrade problems
  3. 3:32Storage collision consequences
  4. 4:58Real-world exploit example
  5. 5:20Storage gaps as solution
  6. 7:30Storage gaps in inheritance
  7. 9:35Diamond storage and ERC-2535
  8. 10:57Namespace storage with ERC-7201
  9. 12:03Namespace storage implementation
  10. 14:54Custom storage layouts in Solidity 0.8.29
  11. 16:20Limitations of custom layouts
  12. 17:22Future of custom storage layouts
  13. 19:27Storage layout evolution
  14. 20:09Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.