diff --git a/src/ethereum_test_vm/bytecode.py b/src/ethereum_test_vm/bytecode.py index 5fb880adde..deef7cdd29 100644 --- a/src/ethereum_test_vm/bytecode.py +++ b/src/ethereum_test_vm/bytecode.py @@ -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)