File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed
tests/prague/eip7702_set_code_tx Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -256,9 +256,18 @@ def test_set_code_to_non_empty_storage_non_zero_nonce(
256
256
)
257
257
258
258
259
+ @pytest .mark .parametrize (
260
+ "access_list_in_tx" ,
261
+ [
262
+ pytest .param (None , id = "" ),
263
+ pytest .param ("sender" , id = "sender_in_access_list" ),
264
+ pytest .param ("auth_signer" , id = "auth_signer_in_access_list" ),
265
+ ],
266
+ )
259
267
def test_set_code_to_sstore_then_sload (
260
268
blockchain_test : BlockchainTestFiller ,
261
269
pre : Alloc ,
270
+ access_list_in_tx : str | None ,
262
271
):
263
272
"""Test the executing a simple SSTORE then SLOAD in two separate set-code transactions."""
264
273
auth_signer = pre .fund_eoa (auth_account_start_balance )
@@ -288,6 +297,16 @@ def test_set_code_to_sstore_then_sload(
288
297
sender = sender ,
289
298
)
290
299
300
+ access_list = (
301
+ [
302
+ AccessList (
303
+ address = sender if access_list_in_tx == "sender" else auth_signer ,
304
+ storage_keys = [Hash (storage_key_1 )],
305
+ )
306
+ ]
307
+ if access_list_in_tx
308
+ else []
309
+ )
291
310
tx_2 = Transaction (
292
311
gas_limit = 100_000 ,
293
312
to = auth_signer ,
@@ -299,6 +318,7 @@ def test_set_code_to_sstore_then_sload(
299
318
signer = auth_signer ,
300
319
),
301
320
],
321
+ access_list = access_list ,
302
322
sender = sender ,
303
323
)
304
324
You can’t perform that action at this time.
0 commit comments