Solidity
Browse all Solidity articles.
11 min read
ERC-7201 Storage Namespaces Explained
ERC-7201 (formerly EIP-7201) is a standard for grouping storage variables together by a common identifier called a namespace, and also to document the…
11 min read
Fixed Point Arithmetic in Solidity (Using Solady, Solmate, and ABDK as Examples)
A fixed-point number is an integer that stores only the numerator of a fraction — while the denominator is implied.
21 min read
Understanding ABI encoding for function calls
ABI encoding is the data format used for making function calls to smart contracts.
18 min read
Delegatecall: The Detailed and Animated Guide
This article explains how delegatecall works in detail. The Ethereum Virtual Machine (EVM) offers four opcodes for making calls between contracts.
53 min read
Solidity Gas Optimization: 80+ Tips and Tricks
80+ ways to cut gas costs in Solidity, from avoiding zero-to-one storage writes and packing variables to calldata and assembly tricks, plus tricks to avoid.
46 min read
Smart Contract Security: Common Solidity Vulnerabilities
A reference to the vulnerabilities that keep recurring in Solidity contracts, from reentrancy and access control to oracle manipulation and flash loans.
6 min read
Three ways to detect if an address is a smart contract
This article describes three methods in Solidity for determining if an address is a smart contract. We discuss each method in this tutorial.
5 min read
Solidity Signed Integer
Solidity signed integers enable using negative numbers in a smart contract. This article documents how they are used at the EVM level.
5 min read
Function Selector in Solidity: How It Is Computed
The function selector is the first 4 bytes of the keccak256 hash of a function signature. See how Solidity computes it, how to get it, and collision odds.
4 min read
Low Level Call vs High Level Call in Solidity
A contract in Solidity can call other contracts via two methods: through the contract interface, which is considered a high-level call, or by using the…
12 min read
A comprehensive guide to the ERC 721 standard and related security issues
ERC721 (or ERC-721) is the most widely used Ethereum standard for nonfungible tokens.
3 min read
Solidity Staticcall EIP 214
Staticcall is like a regular Ethereum call except that it reverts if a state change happens. It cannot be used to transfer Ether.