Skip to content

Commit

Permalink
fix(fw): allow Bytecode(Opcode) (#961)
Browse files Browse the repository at this point in the history
  • Loading branch information
pdobacz authored Nov 21, 2024
1 parent e546b9c commit 206854b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ethereum_test_vm/bytecode.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def __new__(
instance._name_ = name
return instance

if type(bytes_or_byte_code_base) is Bytecode:
if isinstance(bytes_or_byte_code_base, Bytecode):
# Required because Enum class calls the base class with the instantiated object as
# parameter.
obj = super().__new__(cls)
Expand Down

0 comments on commit 206854b

Please sign in to comment.