Skip to content

Commit 87a9c42

Browse files
committed
Improve GasMeter comments.
1 parent f3ff294 commit 87a9c42

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

libevmasm/GasMeter.h

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -226,13 +226,16 @@ class GasMeter
226226
/// change with EVM versions)
227227
static unsigned runGas(Instruction _instruction, langutil::EVMVersion _evmVersion);
228228

229-
/// @returns gas costs for push instructions (may change depending on EVM version)
229+
/// @returns gas costs for the cheapest push instructions for the given @a _value
230+
/// (may change depending on EVM version)
230231
static unsigned pushGas(u256 _value, langutil::EVMVersion _evmVersion);
231232

232-
/// @returns gas costs for swap instructions (may change depending on EVM version)
233+
/// @returns gas costs for the cheapest swap instructions for the given @a _depth
234+
/// (may change depending on EVM version)
233235
static unsigned swapGas(size_t _depth, langutil::EVMVersion _evmVersion);
234236

235-
/// @returns gas costs for dup instructions (may change depending on EVM version)
237+
/// @returns gas costs for the cheapest dup instructions for the given @a _depth
238+
/// (may change depending on EVM version)
236239
static unsigned dupGas(size_t _depth, langutil::EVMVersion _evmVersion);
237240

238241
/// @returns the gas cost of the supplied data, depending whether it is in creation code, or not.

0 commit comments

Comments
 (0)