Deepcopy storage load and store sets (#1648)

* Support py36 through py39

* Remove usage of cytoolz

* Update tox

* Add a get set for summaries

* Support get/set

* Restrict cytoolz

* Move cytoolz up the dependency list

* Move cytoolz up the dependency list
pull/1652/head
Nikhil Parasaram 2 years ago committed by GitHub
parent 06426c64f6
commit 229b607fe5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      mythril/laser/ethereum/state/account.py
  2. 1
      requirements.txt

@ -94,7 +94,8 @@ class Storage:
storage._standard_storage = deepcopy(self._standard_storage) storage._standard_storage = deepcopy(self._standard_storage)
storage.printable_storage = copy(self.printable_storage) storage.printable_storage = copy(self.printable_storage)
storage.storage_keys_loaded = copy(self.storage_keys_loaded) storage.storage_keys_loaded = copy(self.storage_keys_loaded)
storage.keys_set = copy(self.keys_set) storage.keys_set = deepcopy(self.keys_set)
storage.keys_get = deepcopy(self.keys_get)
return storage return storage
def __str__(self) -> str: def __str__(self) -> str:

@ -1,4 +1,5 @@
blake2b-py blake2b-py
cytools<0.12.0
coloredlogs>=10.0 coloredlogs>=10.0
coincurve>=13.0.0 coincurve>=13.0.0
asn1crypto>=0.22.0 asn1crypto>=0.22.0

Loading…
Cancel
Save