These are the exercises from the Udemy course Advanced Solidity: Understanding and Optimizing Gas Costs.
The idea is to optimize the gas cost for each of the contracts. I'm currently working on the solutions under contracts/optimized
- Distribute
- Array Sum
- Mint150
- ERC165
- Array Sort
- Escrow
- EscrowV2
- Mint
- Presale
- Vote
- Require
- Staking
All the tests:
$ npm test
Individual tests:
$ npx hardhat test test/TestName