Remove this.balance (automatically converted to BALANCE)

pull/62/head
Josselin 6 years ago
parent b6460dd235
commit cfc3988ed1
  1. 3
      slither/core/declarations/solidity_variables.py
  2. 2
      slither/slithir/operations/balance.py

@ -22,8 +22,7 @@ SOLIDITY_VARIABLES_COMPOSED = {"block.coinbase":"address",
"msg.sig":"bytes4",
"msg.value":"uint256",
"tx.gasprice":"uint256",
"tx.origin":"address",
"this.balance":"uint256"}
"tx.origin":"address"}
SOLIDITY_FUNCTIONS = {"gasleft()":['uint256'],

@ -23,4 +23,4 @@ class Balance(OperationWithLValue):
return self._value
def __str__(self):
return "{} -> Balance {}".format(self.lvalue, self.value)
return "{} -> BALANCE {}".format(self.lvalue, self.value)

Loading…
Cancel
Save