aboutsummaryrefslogtreecommitdiffstats
path: root/libevmasm/GasMeter.h
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2018-09-18 22:50:21 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2018-09-26 21:25:40 +0800
commit9be058eb70be20d379d48a8902d112ba491aae2d (patch)
tree8fd4e01441ceed48a86f57535687b7de5ba755b7 /libevmasm/GasMeter.h
parent13cd7c3fed1c7a9e671b2580aa3d81fb45024faa (diff)
downloaddexon-solidity-9be058eb70be20d379d48a8902d112ba491aae2d.tar
dexon-solidity-9be058eb70be20d379d48a8902d112ba491aae2d.tar.gz
dexon-solidity-9be058eb70be20d379d48a8902d112ba491aae2d.tar.bz2
dexon-solidity-9be058eb70be20d379d48a8902d112ba491aae2d.tar.lz
dexon-solidity-9be058eb70be20d379d48a8902d112ba491aae2d.tar.xz
dexon-solidity-9be058eb70be20d379d48a8902d112ba491aae2d.tar.zst
dexon-solidity-9be058eb70be20d379d48a8902d112ba491aae2d.zip
Add explanation to GasMeter::dataGas
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: