@@ -130,9 +130,9 @@ public FrontierGasCalculator() {
130
130
131
131
@ Override
132
132
public long transactionIntrinsicGasCost (
133
- final Bytes payload , final boolean isContractCreation , final long evmGasUsed ) {
133
+ final Bytes payload , final boolean isContractCreation , final long baselineGas ) {
134
134
final long dynamicIntrinsicGasCost =
135
- dynamicIntrinsicGasCost (payload , isContractCreation , evmGasUsed );
135
+ dynamicIntrinsicGasCost (payload , isContractCreation , baselineGas );
136
136
137
137
if (dynamicIntrinsicGasCost == Long .MIN_VALUE || dynamicIntrinsicGasCost == Long .MAX_VALUE ) {
138
138
return dynamicIntrinsicGasCost ;
@@ -145,14 +145,14 @@ public long transactionIntrinsicGasCost(
145
145
*
146
146
* @param payload the call data payload
147
147
* @param isContractCreation whether the transaction is a contract creation
148
- * @param evmGasUsed how much gas is used by access lists and code delegations
148
+ * @param baselineGas how much gas is used by access lists and code delegations
149
149
* @return the dynamic part of the intrinsic gas cost
150
150
*/
151
151
protected long dynamicIntrinsicGasCost (
152
- final Bytes payload , final boolean isContractCreation , final long evmGasUsed ) {
152
+ final Bytes payload , final boolean isContractCreation , final long baselineGas ) {
153
153
final int payloadSize = payload .size ();
154
154
final long zeroBytes = zeroBytes (payload );
155
- long cost = clampedAdd (callDataCost (payloadSize , zeroBytes ), evmGasUsed );
155
+ long cost = clampedAdd (callDataCost (payloadSize , zeroBytes ), baselineGas );
156
156
157
157
if (cost == Long .MIN_VALUE || cost == Long .MAX_VALUE ) {
158
158
return cost ;
0 commit comments