Skip to content

Commit 818c87f

Browse files
committed
fix(tools): Allow Bytes in Initcode
1 parent 2bffcef commit 818c87f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/ethereum_test_tools/code/generators.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
from dataclasses import dataclass
66
from typing import List, SupportsBytes
77

8+
from ethereum_test_base_types import Bytes
89
from ethereum_test_types import ceiling_division
910
from ethereum_test_vm import Bytecode, EVMCodeType
1011
from ethereum_test_vm import Opcodes as Op
@@ -27,7 +28,7 @@ class Initcode(Bytecode):
2728
costs.
2829
"""
2930

30-
deploy_code: SupportsBytes
31+
deploy_code: SupportsBytes | Bytes
3132
"""
3233
Bytecode to be deployed by the initcode.
3334
"""
@@ -44,7 +45,7 @@ class Initcode(Bytecode):
4445
def __new__(
4546
cls,
4647
*,
47-
deploy_code: SupportsBytes = Bytecode(),
48+
deploy_code: SupportsBytes | Bytes = Bytecode(),
4849
initcode_length: int | None = None,
4950
initcode_prefix: Bytecode = Bytecode(),
5051
initcode_prefix_execution_gas: int = 0,

0 commit comments

Comments
 (0)