crytic / crytic/building-secure-contracts

List optimizations tricks and best practices

Open
#75 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.