01 / #ethereum · 3 posts
2024
-
· solidity · 6 min
Understanding Variable Types in Solidity
Solidity variable types explained: value vs reference types, storage, memory, and calldata, constant vs immutable, slot packing, and pragma versions.
-
· solidity · 13 min
Solidity Gas Optimization: What Saves Gas and What's Folklore
Solidity gas optimization measured on solc 0.8.37: storage caching, calldata, custom errors, immutable, transient storage, optimizer settings, and the myths.
-
· solidity · 5 min
Pull Over Push Pattern in Solidity: Safe ETH Withdrawals
Pull over push in Solidity: why paying users in a loop breaks, and how to let them withdraw with call, checks-effects-interactions, and ReentrancyGuard.