From 206854b561477560928255d81c2de7b6d8dfab7d Mon Sep 17 00:00:00 2001 From: pdobacz <5735525+pdobacz@users.noreply.github.com> Date: Thu, 21 Nov 2024 05:18:13 +0100 Subject: [PATCH] fix(fw): allow `Bytecode(Opcode)` (#961) --- src/ethereum_test_vm/bytecode.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)