From 9be058eb70be20d379d48a8902d112ba491aae2d Mon Sep 17 00:00:00 2001 From: Alex Beregszaszi Date: Tue, 18 Sep 2018 15:50:21 +0100 Subject: Add explanation to GasMeter::dataGas --- libevmasm/GasMeter.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libevmasm/GasMeter.h') 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: -- cgit