File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
tests/prague/eip7623_increase_calldata_cost Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 4
4
""" # noqa: E501
5
5
6
6
from enum import Enum , Flag , auto
7
- from typing import Dict
7
+ from typing import Dict , List
8
8
9
9
import pytest
10
10
11
11
from ethereum_test_forks import Fork , Prague
12
12
from ethereum_test_tools import (
13
13
Address ,
14
14
Alloc ,
15
+ AuthorizationTuple ,
15
16
Bytecode ,
16
17
StateTestFiller ,
17
18
Transaction ,
@@ -61,9 +62,11 @@ def data_test_type() -> DataTestType:
61
62
62
63
63
64
@pytest .fixture
64
- def authorization_refund ( refund_type : RefundType ) -> int :
65
+ def authorization_list ( pre : Alloc , refund_type : RefundType ) -> List [ AuthorizationTuple ] | None :
65
66
"""Modify fixture from conftest to automatically read the refund_type information."""
66
- return RefundType .AUTHORIZATION_EXISTING_AUTHORITY in refund_type
67
+ if RefundType .AUTHORIZATION_EXISTING_AUTHORITY not in refund_type :
68
+ return None
69
+ return [AuthorizationTuple (signer = pre .fund_eoa (1 ), address = Address (1 ))]
67
70
68
71
69
72
@pytest .fixture
You can’t perform that action at this time.
0 commit comments