mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Add explanation to GasMeter::dataGas
This commit is contained in:
parent
13cd7c3fed
commit
9be058eb70
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user