Building Secure Contracts from Scratch: Reentrancy Defense in SimpleBank and Voting Systems
A hands-on engineering guide to building secure smart contracts: reproducing reentrancy vulnerabilities in Foundry, applying the Checks-Effects-Interactions (CEI) pattern, and constructing robust bank and voting state machines.