You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems the usage of the Storage.KeyValueMismatch exception is causing another exception when it is being printed. In the end, user get no information what is mismatched.
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = Storage(root={0: 1}), address = b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00'
other = Storage(root={1: 1})
def must_be_equal(self, address: Address, other: "Storage | None"):
"""
Succeeds only if "self" is equal to "other" storage.
"""
# Test keys contained in both storage objects
if other is None:
other = Storage({})
for key in self.keys() & other.keys():
if self[key] != other[key]:
raise Storage.KeyValueMismatch(
address=address, key=key, want=self[key], got=other[key]
)
# Test keys contained in either one of the storage objects
for key in self.keys() ^ other.keys():
if key in self:
if self[key] != 0:
> raise Storage.KeyValueMismatch(address=address, key=key, want=self[key], got=0)
E ethereum_test_tools.common.types.Storage.KeyValueMismatch: <exception str() failed>
src/ethereum_test_tools/common/types.py:314: KeyValueMismatch
The text was updated successfully, but these errors were encountered:
It seems the usage of the
Storage.KeyValueMismatch
exception is causing another exception when it is being printed. In the end, user get no information what is mismatched.The text was updated successfully, but these errors were encountered: