Skip to content

Commit

Permalink
Updated minimum gas usage estimation (#355)
Browse files Browse the repository at this point in the history
  • Loading branch information
k1rill-fedoseev authored and akolotov committed Jan 2, 2020
1 parent 89e8ffb commit 49c0b80
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ contract MessageDelivery is BasicAMB {
function getMinimumGasUsage(bytes _data) public pure returns (uint256 gas) {
//From Ethereum Yellow Paper
// 68 gas is paid for every non-zero byte of data or code for a transaction
return _data.length.mul(68);
// Starting from Istanbul hardfork, 16 gas is paid (EIP-2028)
return _data.length.mul(16);
}

/* solcov ignore next */
Expand Down

0 comments on commit 49c0b80

Please sign in to comment.