Make error message less confusing

This commit is contained in:
Marenz
2022-02-17 16:52:36 +01:00
parent a674406299
commit 175580fe90
16 changed files with 25 additions and 26 deletions
@@ -4,4 +4,4 @@ contract A {
function f() public pure { x = 42; }
}
// ----
// TypeError 8961: (SourceName:53-54): Function declared as pure, but this expression (potentially) modifies the state and thus requires non-payable (the default) or payable.
// TypeError 8961: (SourceName:53-54): Function cannot be declared as pure because this expression (potentially) modifies the state.