Merge pull request #12695 from ethereum/less-confusing-err

Make error message less confusing
This commit is contained in:
chriseth
2022-02-28 12:36:47 +01:00
committed by GitHub
16 changed files with 25 additions and 26 deletions
+2 -3
View File
@@ -256,10 +256,9 @@ void ViewPureChecker::reportMutability(
m_errorReporter.typeError(
8961_error,
_location,
"Function declared as " +
"Function cannot be declared as " +
stateMutabilityToString(m_currentFunction->stateMutability()) +
", but this expression (potentially) modifies the state and thus "
"requires non-payable (the default) or payable."
" because this expression (potentially) modifies the state."
);
m_errors = true;
}