Skip to content

Commit

Permalink
fix(tools): Allow Bytes in Initcode
Browse files Browse the repository at this point in the history
  • Loading branch information
marioevz committed Oct 11, 2024
1 parent 42f33a1 commit 8b76a55
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/ethereum_test_tools/code/generators.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
from dataclasses import dataclass
from typing import List, SupportsBytes

from ethereum_test_base_types import Bytes
from ethereum_test_types import ceiling_division
from ethereum_test_vm import Bytecode, EVMCodeType
from ethereum_test_vm import Opcodes as Op
Expand All @@ -27,7 +28,7 @@ class Initcode(Bytecode):
costs.
"""

deploy_code: SupportsBytes
deploy_code: SupportsBytes | Bytes
"""
Bytecode to be deployed by the initcode.
"""
Expand All @@ -44,7 +45,7 @@ class Initcode(Bytecode):
def __new__(
cls,
*,
deploy_code: SupportsBytes = Bytecode(),
deploy_code: SupportsBytes | Bytes = Bytecode(),
initcode_length: int | None = None,
initcode_prefix: Bytecode = Bytecode(),
initcode_prefix_execution_gas: int = 0,
Expand Down

0 comments on commit 8b76a55

Please sign in to comment.