Rename to invalidInPureFunctions

This commit is contained in:
chriseth
2017-09-13 17:18:22 +02:00
parent b756274357
commit 66c01301fe
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -41,7 +41,7 @@ public:
{
if (eth::SemanticInformation::invalidInViewFunctions(_instruction.instruction))
m_reportMutability(StateMutability::NonPayable, _instruction.location);
else if (eth::SemanticInformation::readsFromState(_instruction.instruction))
else if (eth::SemanticInformation::invalidInPureFunctions(_instruction.instruction))
m_reportMutability(StateMutability::View, _instruction.location);
}
void operator()(assembly::Literal const&) {}