Skip to content

Commit 699673d

Browse files
committed
fix authorization list
1 parent 3d6133a commit 699673d

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

tests/prague/eip7623_increase_calldata_cost/test_refunds.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,15 @@
44
""" # noqa: E501
55

66
from enum import Enum, Flag, auto
7-
from typing import Dict
7+
from typing import Dict, List
88

99
import pytest
1010

1111
from ethereum_test_forks import Fork, Prague
1212
from ethereum_test_tools import (
1313
Address,
1414
Alloc,
15+
AuthorizationTuple,
1516
Bytecode,
1617
StateTestFiller,
1718
Transaction,
@@ -61,9 +62,11 @@ def data_test_type() -> DataTestType:
6162

6263

6364
@pytest.fixture
64-
def authorization_refund(refund_type: RefundType) -> int:
65+
def authorization_list(pre: Alloc, refund_type: RefundType) -> List[AuthorizationTuple] | None:
6566
"""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))]
6770

6871

6972
@pytest.fixture

0 commit comments

Comments
 (0)