From b95f54048fd34566a50c5a39ac8f5aa3dde0f7f1 Mon Sep 17 00:00:00 2001 From: bt3gl <1130416+bt3gl@users.noreply.github.com> Date: Mon, 10 Oct 2022 16:15:12 -0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=A5=A6=20add=20links=20for=20gas=20report?= =?UTF-8?q?s?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- solidity/saving_gas.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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) + + + +
---