Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
marioevz committed Jun 27, 2024
1 parent e300ea3 commit 557c4a1
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions tests/prague/eip7702_eoa_code_tx/test_eoa_code_txs.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
pytestmark = pytest.mark.valid_from("Prague")


class InvalidityReasons(Enum):
class InvalidityReason(Enum):
"""
Reasons for invalidity.
"""
Expand All @@ -58,7 +58,6 @@ def test_set_code_to_sstore(
pre: Alloc,
suffix: Bytecode,
succeeds: bool,
chain_id: int,
):
"""
Test the executing a simple SSTORE in a set-code transaction.
Expand Down Expand Up @@ -703,12 +702,12 @@ def test_set_code_multiple_valid_authorization_tuples_first_invalid_same_signer(

@pytest.mark.parametrize(
"invalidity_reason",
list(InvalidityReasons),
list(InvalidityReason),
)
def test_set_code_invalid_authorization_tuple(
state_test: StateTestFiller,
pre: Alloc,
invalidity_reason: InvalidityReasons,
invalidity_reason: InvalidityReason,
):
"""
Test attempting to set the code of an account with invalid authorization tuple.
Expand All @@ -727,11 +726,11 @@ def test_set_code_invalid_authorization_tuple(
authorization_tuples=[
AuthorizationTuple(
address=set_code_to_address,
nonce=1 if invalidity_reason == InvalidityReasons.NONCE else 0,
nonce=1 if invalidity_reason == InvalidityReason.NONCE else 0,
chain_id=2
if invalidity_reason == InvalidityReasons.CHAIN_ID
if invalidity_reason == InvalidityReason.CHAIN_ID
else [0, 1]
if invalidity_reason == InvalidityReasons.MULTIPLE_NONCE
if invalidity_reason == InvalidityReason.MULTIPLE_NONCE
else 0,
signer=signer,
)
Expand Down

0 comments on commit 557c4a1

Please sign in to comment.