@@ -48,7 +48,7 @@ class CallOpcodesPostEip2929Spec
4848 }
4949
5050 " consume correct gas (refund unused gas) (warm access)" in {
51- val call = fxt.ExecuteCall (op = CALL , toAccessed = true )
51+ val call = fxt.ExecuteCall (op = CALL , toAlreadyAccessed = true )
5252 val expectedGas = fxt.requiredGas - G_callstipend + G_warm_storage_read + G_callvalue + fxt.expectedMemCost
5353 call.stateOut.gasUsed shouldEqual expectedGas
5454 call.stateOut.accessedAddresses should contain(fxt.extAddr)
@@ -68,7 +68,7 @@ class CallOpcodesPostEip2929Spec
6868
6969 " consume correct gas (refund call gas) (warm access)" in {
7070 val call =
71- fxt.ExecuteCall (op = CALL , toAccessed = true , context = fxt.context.copy(callDepth = EvmConfig .MaxCallDepth ))
71+ fxt.ExecuteCall (op = CALL , toAlreadyAccessed = true , context = fxt.context.copy(callDepth = EvmConfig .MaxCallDepth ))
7272 val expectedGas = G_warm_storage_read + G_callvalue - G_callstipend + config.calcMemCost(32 , 32 , 16 )
7373 call.stateOut.gasUsed shouldEqual expectedGas
7474 call.stateOut.accessedAddresses should contain(fxt.extAddr)
@@ -87,7 +87,7 @@ class CallOpcodesPostEip2929Spec
8787 }
8888
8989 " consume correct gas (refund call gas) (warm access)" in {
90- val call = fxt.ExecuteCall (op = CALL , toAccessed = true , value = fxt.initialBalance + 1 )
90+ val call = fxt.ExecuteCall (op = CALL , toAlreadyAccessed = true , value = fxt.initialBalance + 1 )
9191 val expectedGas = G_warm_storage_read + G_callvalue - G_callstipend + config.calcMemCost(32 , 32 , 16 )
9292 call.stateOut.gasUsed shouldEqual expectedGas
9393 call.stateOut.accessedAddresses should contain(fxt.extAddr)
@@ -103,7 +103,7 @@ class CallOpcodesPostEip2929Spec
103103 }
104104
105105 " adjust gas cost (warm access)" in {
106- val call = fxt.ExecuteCall (op = CALL , toAccessed = true , value = 0 )
106+ val call = fxt.ExecuteCall (op = CALL , toAlreadyAccessed = true , value = 0 )
107107 val expectedGas = fxt.requiredGas + G_warm_storage_read + fxt.expectedMemCost - (G_sset - G_sload )
108108 call.stateOut.gasUsed shouldEqual expectedGas
109109 call.stateOut.accessedAddresses should contain(fxt.extAddr)
@@ -124,7 +124,7 @@ class CallOpcodesPostEip2929Spec
124124 }
125125
126126 " consume all call gas (warm access)" in {
127- val call = fxt.ExecuteCall (op = CALL , context, toAccessed = true )
127+ val call = fxt.ExecuteCall (op = CALL , context, toAlreadyAccessed = true )
128128 val expectedGas = fxt.requiredGas + fxt.gasMargin + G_warm_storage_read + G_callvalue + fxt.expectedMemCost
129129 call.stateOut.gasUsed shouldEqual expectedGas
130130 call.stateOut.accessedAddresses should contain(fxt.extAddr)
@@ -145,7 +145,7 @@ class CallOpcodesPostEip2929Spec
145145 }
146146
147147 " consume correct gas (refund call gas, add new account modifier) (warm access)" in {
148- val call = fxt.ExecuteCall (op = CALL , context, toAccessed = true )
148+ val call = fxt.ExecuteCall (op = CALL , context, toAlreadyAccessed = true )
149149 val expectedGas = G_warm_storage_read + G_callvalue + G_newaccount - G_callstipend + fxt.expectedMemCost
150150 call.stateOut.gasUsed shouldEqual expectedGas
151151 call.stateOut.accessedAddresses should contain(fxt.extAddr)
@@ -212,7 +212,7 @@ class CallOpcodesPostEip2929Spec
212212 }
213213
214214 " consume correct gas (refund unused gas) (warm access)" in {
215- val call = fxt.ExecuteCall (op = CALLCODE , outSize = fxt.inputData.size * 2 , toAccessed = true )
215+ val call = fxt.ExecuteCall (op = CALLCODE , outSize = fxt.inputData.size * 2 , toAlreadyAccessed = true )
216216 val expectedMemCost = config.calcMemCost(fxt.inputData.size, fxt.inputData.size, call.outSize)
217217 val expectedGas = fxt.requiredGas - G_callstipend + G_warm_storage_read + G_callvalue + expectedMemCost
218218 call.stateOut.gasUsed shouldEqual expectedGas
@@ -234,7 +234,7 @@ class CallOpcodesPostEip2929Spec
234234 }
235235
236236 " consume correct gas (refund call gas) (warm access)" in {
237- val call = fxt.ExecuteCall (op = CALLCODE , context = context, toAccessed = true )
237+ val call = fxt.ExecuteCall (op = CALLCODE , context = context, toAlreadyAccessed = true )
238238 val expectedGas = G_warm_storage_read + G_callvalue - G_callstipend + fxt.expectedMemCost
239239 call.stateOut.gasUsed shouldEqual expectedGas
240240 call.stateOut.accessedAddresses should contain(fxt.extAddr)
@@ -254,7 +254,7 @@ class CallOpcodesPostEip2929Spec
254254 }
255255
256256 " consume correct gas (refund call gas) (warm)" in {
257- val call = fxt.ExecuteCall (op = CALLCODE , value = fxt.initialBalance + 1 , toAccessed = true )
257+ val call = fxt.ExecuteCall (op = CALLCODE , value = fxt.initialBalance + 1 , toAlreadyAccessed = true )
258258 val expectedGas = G_warm_storage_read + G_callvalue - G_callstipend + fxt.expectedMemCost
259259 call.stateOut.gasUsed shouldEqual expectedGas
260260 call.stateOut.accessedAddresses should contain(fxt.extAddr)
@@ -271,7 +271,7 @@ class CallOpcodesPostEip2929Spec
271271 }
272272
273273 " adjust gas cost (warm access)" in {
274- val call = fxt.ExecuteCall (op = CALLCODE , toAccessed = true , value = 0 )
274+ val call = fxt.ExecuteCall (op = CALLCODE , toAlreadyAccessed = true , value = 0 )
275275 val expectedGas = fxt.requiredGas + G_warm_storage_read + fxt.expectedMemCost - (G_sset - G_sload )
276276 call.stateOut.gasUsed shouldEqual expectedGas
277277 call.stateOut.accessedAddresses should contain(fxt.extAddr)
@@ -291,7 +291,7 @@ class CallOpcodesPostEip2929Spec
291291 }
292292
293293 " consume all call gas (warm)" in {
294- val call = fxt.ExecuteCall (op = CALLCODE , context, toAccessed = true )
294+ val call = fxt.ExecuteCall (op = CALLCODE , context, toAlreadyAccessed = true )
295295 val expectedGas = fxt.requiredGas + fxt.gasMargin + G_warm_storage_read + G_callvalue + fxt.expectedMemCost
296296 call.stateOut.gasUsed shouldEqual expectedGas
297297 call.stateOut.accessedAddresses should contain(fxt.extAddr)
@@ -311,7 +311,7 @@ class CallOpcodesPostEip2929Spec
311311 }
312312
313313 " consume correct gas (refund call gas) (warm)" in {
314- val call = fxt.ExecuteCall (op = CALLCODE , context, toAccessed = true )
314+ val call = fxt.ExecuteCall (op = CALLCODE , context, toAlreadyAccessed = true )
315315 val expectedGas = G_warm_storage_read + G_callvalue - G_callstipend + fxt.expectedMemCost
316316 call.stateOut.gasUsed shouldEqual expectedGas
317317 call.stateOut.accessedAddresses should contain(fxt.extAddr)
@@ -380,7 +380,7 @@ class CallOpcodesPostEip2929Spec
380380 }
381381
382382 " consume correct gas (refund unused gas) (warm)" in {
383- val call = fxt.ExecuteCall (op = DELEGATECALL , outSize = fxt.inputData.size / 4 , toAccessed = true )
383+ val call = fxt.ExecuteCall (op = DELEGATECALL , outSize = fxt.inputData.size / 4 , toAlreadyAccessed = true )
384384 val expectedMemCost = config.calcMemCost(fxt.inputData.size, fxt.inputData.size, call.outSize)
385385 val expectedGas = fxt.requiredGas + G_warm_storage_read + expectedMemCost
386386 call.stateOut.gasUsed shouldEqual expectedGas
@@ -402,7 +402,7 @@ class CallOpcodesPostEip2929Spec
402402 }
403403
404404 " consume correct gas (refund call gas) (warm)" in {
405- val call = fxt.ExecuteCall (op = DELEGATECALL , context = context, toAccessed = true )
405+ val call = fxt.ExecuteCall (op = DELEGATECALL , context = context, toAlreadyAccessed = true )
406406 val expectedGas = G_warm_storage_read + fxt.expectedMemCost
407407 call.stateOut.gasUsed shouldEqual expectedGas
408408 call.stateOut.accessedAddresses should contain(fxt.extAddr)
@@ -422,7 +422,7 @@ class CallOpcodesPostEip2929Spec
422422 }
423423
424424 " consume all call gas (warm)" in {
425- val call = fxt.ExecuteCall (op = DELEGATECALL , context, toAccessed = true )
425+ val call = fxt.ExecuteCall (op = DELEGATECALL , context, toAlreadyAccessed = true )
426426 val expectedGas = fxt.requiredGas + fxt.gasMargin + G_warm_storage_read + fxt.expectedMemCost
427427 call.stateOut.gasUsed shouldEqual expectedGas
428428 call.stateOut.accessedAddresses should contain(fxt.extAddr)
@@ -442,7 +442,7 @@ class CallOpcodesPostEip2929Spec
442442 }
443443
444444 " consume correct gas (refund call gas) (warm)" in {
445- val call = fxt.ExecuteCall (op = DELEGATECALL , context, toAccessed = true )
445+ val call = fxt.ExecuteCall (op = DELEGATECALL , context, toAlreadyAccessed = true )
446446 val expectedGas = G_warm_storage_read + fxt.expectedMemCost
447447 call.stateOut.gasUsed shouldEqual expectedGas
448448 call.stateOut.accessedAddresses should contain(fxt.extAddr)
@@ -533,7 +533,7 @@ class CallOpcodesPostEip2929Spec
533533 gas = gas,
534534 context = context,
535535 outOffset = UInt256 .Zero ,
536- toAccessed = true
536+ toAlreadyAccessed = true
537537 )
538538 " return an OutOfGas error" in {
539539 call.stateOut.error shouldBe Some (OutOfGas )
0 commit comments