🥦 add links for gas reports

This commit is contained in:
bt3gl 2022-10-10 16:15:12 -07:00 committed by GitHub
parent 07bf088344
commit b95f54048f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,12 +1,27 @@
## ⛽️ Tricks to save gas
<br>
#### 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.
<br>
-----
### gas reports
<br>
* [hardhat](https://medium.com/@thelasthash/%EF%B8%8F-gas-optimization-with-hardhat-1e553eaea311)
* [foundry](https://book.getfoundry.sh/forge/gas-reports)
<br>
---