crytic / crytic/building-secure-contracts
List optimizations tricks and best practices
Open
- Dominant language
- Solidity
- Stars
- 2.5k
- Forks
- 391
- PR merge metrics
- No merged PRs in 30d
Description
# Code size
- External function (and when it works)
- Using internal calls instead of modifiers
- How to split a large contract into smaller component
- ...
# Transaction gas cost
- Local variables instead of multiple storage read
- ...
Contributor guide
Research direction
Review the existing guidelines and training material to find where optimization guidance belongs. Cover the requested code-size and transaction-gas topics, including the listed examples, and consider the work done when the material gives complete, accurate best-practice guidance for those areas.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- solidity
- Domain
- blockchain, documentation
- Issue type
- Documentation
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100