Solidity
Browse all Solidity articles.
7 min read
What makes blockchain immutable?
Contrary to popular belief, blockchains are not immutable because of cryptography, but because of economic incentive.
5 min read
EIP-150 and the 63/64 Rule for Gas
EIP-150, or Ethereum Improvement Proposal 150, is a protocol upgrade for the Ethereum blockchain.
11 min read
Solidity Events
Solidity events are the closest thing to a print or console.log statement in Ethereum.
1 min read
Verify Signature Solidity in Foundry
Here is a minimal (copy and paste) example of how to safely create and verify ECDSA signatures with OpenZeppelin in the Foundry environment.
7 min read
EIP-2930 - Ethereum access list
An Ethereum access list transaction enables saving gas on cross-contract calls by declaring in advance which contract and storage slots will be accessed.
2 min read
Uint256 max value
But it's cleaner and safer to use type(uint256).max. A uintN means there are N bits that represent the number, and when all of them are set to 1, this is…
3 min read
Solidity test internal function
To test an internal Solidity function, create a child contract that inherits from the contract being tested, wrap the parent contract’s internal function…
11 min read
Foundry Unit Tests
This article will describe how to create unit tests in Solidity using Foundry.
6 min read
Solidity Coding Standards
The purpose of this article is not to rehash the official Solidity Style Guide, which you should read.
10 min read
Solidity RSA signatures for airdrops and presales: Beating ECDSA and Merkle Trees in Gas Efficiency
Creating a contract that gives certain addresses permissions goes by several names: airdrops, presale, whitelist, allowlist, and so forth.
24 min read
The Solidity Engineer Salary is a Myth
Is gold in your future if you study blockchain? This might sound funny coming from a blockchain bootcamp, but it’s true.
8 min read
Where to find solidity reentrancy attacks
Reentrancy can only happen when your smart contract calls another smart contract via function call or sending ether.