Ethereum doesn’t care about your variables

Why storage slots are just dumb bytes and Solidity does the slicing Ethereum storage slots are just 32 raw bytes, a 256-bit word, usually shown as 64 hex characters with a 0x prefix. Slots don’t know types, addresses, or numbers. It’s the Solidity compiler and ABI that define how those bytes are sliced and interpreted.… Continue reading Ethereum doesn’t care about your variables

Solidity Storage Packing

TL;DR Writing about Solidity I’m deep-diving Solidity from the ground up to sharpen my understanding and share practical takeaways. This article collects my notes and examples, starting where it all begins: storage slots. Understanding how data lives in 32-byte words explains packing rules and gas costs. Once storage clicks, choosing the right types and using… Continue reading Solidity Storage Packing