diff --git a/solidity/saving_gas.md b/solidity/saving_gas.md index 12db511..bfd09c8 100644 --- a/solidity/saving_gas.md +++ b/solidity/saving_gas.md @@ -1,12 +1,27 @@ ## ⛽️ Tricks to save gas +
#### Gas is the cost to for on-chain computation and storage. #### Examples: addition costs 3 gas, Keccak-256 costs 30 gas + 6 gas for each 256 bits of data being hashed, sending a transaction costs 21,000 gas. +
+ +----- + +### gas reports + +
+ +* [hardhat](https://medium.com/@thelasthash/%EF%B8%8F-gas-optimization-with-hardhat-1e553eaea311) +* [foundry](https://book.getfoundry.sh/forge/gas-reports) + + + +
---