We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 84e3072 commit 3785564Copy full SHA for 3785564
src/ethereum_test_tools/vm/opcode.py
@@ -66,11 +66,13 @@ def __str__(self) -> str:
66
def __eq__(self, other):
67
"""
68
Required to differentiate between SELFDESTRUCT and SENDALL type of cases
69
- And to register the Macro opcodes which are defined from same bytes
+ And to compare with the Macro opcodes
70
71
if isinstance(other, OpcodeMacroBase):
72
return self._name_ == other._name_
73
- return False
+ if isinstance(other, bytes):
74
+ return bytes(self) == other
75
+ return NotImplementedError(f"Unsupported type for comparison f{type(other)}")
76
77
78
class Opcode(OpcodeMacroBase):
0 commit comments