BuildBot

Shipping on Chain

Gas, upgradeability & L2s

Lesson 3 of 5

Storage packing and calldata discipline cut gas. Proxies let you upgrade immutable code by separating storage from logic. Rollups make both matter less by moving execution off mainnet.

What you'll learn

  • Apply the two gas optimisations that matter: pack storage slots and prefer events and calldata to storage
  • Explain how a proxy upgrades a contract via delegatecall and where the storage really lives
  • Compare mainnet and an L2's live gas price and describe what a rollup posts back to Ethereum
Members only

A free account unlocks this lesson and every other one.

Runnable challenges, knowledge checks, and progress that syncs across your devices. No card needed.

Not sure yet? Try the free lesson first: Security: the exploits that defined the industry