mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Do not handle balance
member of contract types specially.
This commit is contained in:
parent
e3c2f20f6e
commit
3fa0ac5822
@ -287,9 +287,8 @@ void ViewPureChecker::endVisit(MemberAccess const& _memberAccess)
|
||||
ASTString const& member = _memberAccess.memberName();
|
||||
switch (_memberAccess.expression().annotation().type->category())
|
||||
{
|
||||
case Type::Category::Contract:
|
||||
case Type::Category::Integer:
|
||||
if (member == "balance" && !_memberAccess.annotation().referencedDeclaration)
|
||||
if (member == "balance")
|
||||
mutability = StateMutability::View;
|
||||
break;
|
||||
case Type::Category::Magic:
|
||||
|
Loading…
Reference in New Issue
Block a user