From 1a1db1ec963935bffcabd6115cf99d04fd1d633b Mon Sep 17 00:00:00 2001 From: chriseth Date: Thu, 31 Aug 2017 16:14:54 +0200 Subject: Tone down error message. --- test/libsolidity/ViewPureChecker.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test') diff --git a/test/libsolidity/ViewPureChecker.cpp b/test/libsolidity/ViewPureChecker.cpp index fabd1bee..6e99260c 100644 --- a/test/libsolidity/ViewPureChecker.cpp +++ b/test/libsolidity/ViewPureChecker.cpp @@ -88,7 +88,7 @@ BOOST_AUTO_TEST_CASE(call_internal_functions_fail) CHECK_ERROR( "contract C{ function f() pure { g(); } function g() view {} }", TypeError, - "Function declared as pure, but this expression reads from the environment or state and thus requires \"view\"" + "Function declared as pure, but this expression (potentially) reads from the environment or state and thus requires \"view\"" ); } @@ -96,7 +96,7 @@ BOOST_AUTO_TEST_CASE(write_storage_fail) { CHECK_WARNING( "contract C{ uint x; function f() view { x = 2; } }", - "Function declared as view, but this expression modifies the state and thus requires non-payable (the default) or payable." + "Function declared as view, but this expression (potentially) modifies the state and thus requires non-payable (the default) or payable." ); } @@ -131,7 +131,7 @@ BOOST_AUTO_TEST_CASE(environment_access) CHECK_ERROR( "contract C { function f() pure { var x = " + x + "; x; } }", TypeError, - "Function declared as pure, but this expression reads from the environment or state and thus requires \"view\"" + "Function declared as pure, but this expression (potentially) reads from the environment or state and thus requires \"view\"" ); } for (string const& x: pure) -- cgit