MCPcopy
hub / github.com/ethereum/research / __eq__

Method __eq__

spec_pythonizer/minimal_ssz.py:16–20  ·  view source on GitHub ↗
(self, other)

Source from the content-addressed store, hash-verified

14 setattr(self, f, kwargs[f])
15
16 def __eq__(self, other):
17 return (
18 self.fields == other.fields and
19 self.serialize() == other.serialize()
20 )
21
22 def __hash__(self):
23 return int.from_bytes(self.hash_tree_root(), byteorder="little")

Callers

nothing calls this directly

Calls 1

serializeMethod · 0.95

Tested by

no test coverage detected