aboutsummaryrefslogtreecommitdiffstats
path: root/libevmasm/GasMeter.h
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2018-09-26 22:16:38 +0800
committerGitHub <noreply@github.com>2018-09-26 22:16:38 +0800
commit410d94c49802ffd1a8cc834e30630308aed7283b (patch)
tree1d75cae3e1d7a7f2ac1e62faded1261cc310e2a0 /libevmasm/GasMeter.h
parent2c860b7d7403fdec27442b617e9d01e610d06502 (diff)
parentd7c3f197c4c5bb5eb735089486134fdc20a5850f (diff)
downloaddexon-solidity-410d94c49802ffd1a8cc834e30630308aed7283b.tar.gz
dexon-solidity-410d94c49802ffd1a8cc834e30630308aed7283b.tar.zst
dexon-solidity-410d94c49802ffd1a8cc834e30630308aed7283b.zip
Merge pull request #5089 from ethereum/gasmeter
Small pathgasmeter cleanups
Diffstat (limited to 'libevmasm/GasMeter.h')
-rw-r--r--libevmasm/GasMeter.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/libevmasm/GasMeter.h b/libevmasm/GasMeter.h
index 7cb8015f..da90b028 100644
--- a/libevmasm/GasMeter.h
+++ b/libevmasm/GasMeter.h
@@ -137,6 +137,8 @@ public:
static unsigned runGas(Instruction _instruction);
/// @returns the gas cost of the supplied data, depending whether it is in creation code, or not.
+ /// In case of @a _inCreation, the data is only sent as a transaction and is not stored, whereas
+ /// otherwise code will be stored and have to pay "createDataGas" cost.
static u256 dataGas(bytes const& _data, bool _inCreation);
private: