Ethereum Smart Contracts — Interactive Micro‑Lab / offline, single‑file

Code

// Select or deploy a contract to view its code here.

Trace

Call Stack

Events

Selected Contract — Storage

Balances (ETH)

Blocks

#TxsGasTime
Click a block to inspect its header and contents.

Block Detail

— click a block to view header, inputs, receipts, and outputs —
Instructor Tips • prompts to use during the lab
  • Ask students to predict the next state change before executing a call.
  • Switch callers to show msg.sender authorization effects (e.g., Coin.mint).
  • Trigger the reentrancy attack on VulnerableVault, then repeat on SafeVault to contrast CEI.
  • Have students read emitted Events and explain how off‑chain indexers could react.
  • Discuss gas intuition: each operation adds a small “gas” count (rough proxy) shown in traces and per‑block totals.