Skip to content

Commit

Permalink
fix(fw): account for zero values in storage on empty account check
Browse files Browse the repository at this point in the history
  • Loading branch information
marioevz committed Apr 2, 2024
1 parent 7a3e5b8 commit 2892ed5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ethereum_test_tools/common/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ def __ne__(self, other) -> bool:

def __bool__(self) -> bool:
"""Returns True if the storage is not empty"""
return bool(self.root)
return any(v != 0 for _, v in self.root.items())

def keys(self) -> set[StorageKeyValueType]:
"""Returns the keys of the storage"""
Expand Down

0 comments on commit 2892ed5

Please sign in to comment.