Add a get set for summaries (#1647)

* Support py36 through py39

* Remove usage of cytoolz

* Update tox

* Add a get set for summaries
pull/1652/head
Nikhil Parasaram 2 years ago committed by GitHub
parent 15d7dc989d
commit 13829d77f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      mythril/laser/ethereum/state/account.py

@ -37,8 +37,12 @@ class Storage:
# Stores all keys set in the storage
self.keys_set: Set[BitVec] = set()
# Stores all get keys in the storage
self.keys_get: Set[BitVec] = set()
def __getitem__(self, item: BitVec) -> BitVec:
storage = self._standard_storage
self.keys_get.add(item)
if (
self.address
and self.address.value != 0

Loading…
Cancel
Save