EthereumAdvanceddelegatecall runs another contract's code on your storage by slot number, so mismatched layouts overwrite data. Delegate only to trusted code, use ERC-1967 and ERC-7201 slots, check the target has code, and diff layouts.
#security#solidity#upgrades
EthereumBeginnerERC-721 maps each token id to one owner, ideal for unique items. ERC-1155 tracks quantities per id with batch transfers and mandatory receiver hooks, suiting editions and game items. Pick by data model, not hype.
#nfts#solidity#tokens
ChainlinkIntermediateInherit VRFConsumerBaseV2Plus and call requestRandomWords; the coordinator verifies the oracle's proof before calling fulfillRandomWords. Freeze inputs first, match requestId, never re-request and never revert in the callback.
#oracles#security#solidity
EthereumIntermediateGive a test parameters and forge fuzzes them; bound inputs with bound(). Invariant tests run random call sequences against handler contracts and check invariant_ functions after every call, using ghost variables.
#dev-tools#solidity#testing
EthereumBeginnerInherit OpenZeppelin 5.x ERC20 instead of writing your own, mint a fixed supply to a multisig, and if you need minting add AccessControl roles and ERC20Capped. Put custom rules only in _update, then test and verify.
#security#solidity#tokens
ScrollIntermediateThey rank how closely a zkEVM matches Ethereum: type 1 changes nothing, type 2 swaps data structures, 2.5 reprices gas, 3 drops features like precompiles, and type 4 only compiles the same Solidity to another VM.
#scaling#smart-contracts#solidity
SeiIntermediateSei executes a block's transactions in parallel, tracks what each one read and wrote, and re-executes any that conflict, so results match serial order. Contracts need no changes, but shared hot storage slots still serialize.
#consensus#performance#scaling
Ethereum ClassicBeginnerETC is the original chain that rejected the 2016 DAO-hack fork. It stays proof of work on Etchash, caps supply near 210.7M, uses chain ID 61 and legacy gas pricing, and needs deeper confirmations.
#basics#mining#security
ZKsyncAdvancedzksolc compiles to EraVM, not the EVM: CREATE/CREATE2 addresses differ, factories need known bytecode, every account is a smart account, pubdata changes gas, and the 2300-gas .transfer stipend can fail.
#account-abstraction#scaling#solidity
EthereumIntermediateStorage dominates gas costs: pack variables, cache storage reads, use constant, immutable, calldata and custom errors, emit events for off-chain data, and measure every change with forge snapshot.
#gas-&-fees#performance#solidity
EthereumBeginnerChoose Foundry if your team lives in Solidity and wants fast fuzz and invariant tests; choose Hardhat if contracts ship inside a TypeScript stack. Many teams use both with shared compiler settings.
#dev-tools#solidity#testing