From 9a566598c195c716a3e2f73b0406df2ee622f664 Mon Sep 17 00:00:00 2001 From: bt3gl <1130416+bt3gl@users.noreply.github.com> Date: Thu, 29 Sep 2022 04:07:19 -0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=8D=9F=20add=20some=20gas=20info?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- solidity/saving_gas.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/solidity/saving_gas.md b/solidity/saving_gas.md index 96bcd6c..8c682d9 100644 --- a/solidity/saving_gas.md +++ b/solidity/saving_gas.md @@ -4,6 +4,8 @@
#### 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. +