Handle ExprRef input

pull/761/head
Joran Honig 6 years ago
parent 2c11246bb6
commit 7334395087
  1. 2
      mythril/laser/ethereum/state/calldata.py

@ -34,7 +34,7 @@ class BaseCalldata:
return self[offset: offset + 32] return self[offset: offset + 32]
def __getitem__(self, item: Union[int, slice]) -> Any: def __getitem__(self, item: Union[int, slice]) -> Any:
if isinstance(item, int): if isinstance(item, int) or isinstance(item, ExprRef):
return self._load(item) return self._load(item)
if isinstance(item, slice): if isinstance(item, slice):

Loading…
Cancel
Save