mirror of https://github.com/crytic/slither
Merge pull request #985 from crytic/dev-improve-support-unit-global
Improve support for units and globally available variablespull/994/head
commit
3ebf453d9f
@ -1,24 +0,0 @@ |
||||
from slither.core.solidity_types import ElementaryType |
||||
from slither.slithir.operations.lvalue import OperationWithLValue |
||||
from slither.slithir.utils.utils import is_valid_lvalue, is_valid_rvalue |
||||
|
||||
|
||||
class Balance(OperationWithLValue): |
||||
def __init__(self, value, lvalue): |
||||
super().__init__() |
||||
assert is_valid_rvalue(value) |
||||
assert is_valid_lvalue(lvalue) |
||||
self._value = value |
||||
self._lvalue = lvalue |
||||
lvalue.set_type(ElementaryType("uint256")) |
||||
|
||||
@property |
||||
def read(self): |
||||
return [self._value] |
||||
|
||||
@property |
||||
def value(self): |
||||
return self._value |
||||
|
||||
def __str__(self): |
||||
return "{} -> BALANCE {}".format(self.lvalue, self.value) |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue