aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2017-08-16 07:28:13 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2017-08-17 00:23:09 +0800
commita2aaa47ee2032b522ca62249b210c06d3ca3c441 (patch)
treeb11a9444e23cd06c455b866023407696beba39cf /test/libsolidity
parent93be0dd92309c711e7a29dac5257067b837eb7f8 (diff)
downloaddexon-solidity-a2aaa47ee2032b522ca62249b210c06d3ca3c441.tar
dexon-solidity-a2aaa47ee2032b522ca62249b210c06d3ca3c441.tar.gz
dexon-solidity-a2aaa47ee2032b522ca62249b210c06d3ca3c441.tar.bz2
dexon-solidity-a2aaa47ee2032b522ca62249b210c06d3ca3c441.tar.lz
dexon-solidity-a2aaa47ee2032b522ca62249b210c06d3ca3c441.tar.xz
dexon-solidity-a2aaa47ee2032b522ca62249b210c06d3ca3c441.tar.zst
dexon-solidity-a2aaa47ee2032b522ca62249b210c06d3ca3c441.zip
Use state mutability in fallback/constructor check
Diffstat (limited to 'test/libsolidity')
-rw-r--r--test/libsolidity/SolidityNameAndTypeResolution.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/libsolidity/SolidityNameAndTypeResolution.cpp b/test/libsolidity/SolidityNameAndTypeResolution.cpp
index 1c83e1a3..fc4c795e 100644
--- a/test/libsolidity/SolidityNameAndTypeResolution.cpp
+++ b/test/libsolidity/SolidityNameAndTypeResolution.cpp
@@ -1363,7 +1363,7 @@ BOOST_AUTO_TEST_CASE(fallback_function_with_constant_modifier)
function() constant { x = 2; }
}
)";
- CHECK_ERROR(text, TypeError, "Fallback function cannot be declared constant.");
+ CHECK_ERROR(text, TypeError, "Fallback function must be payable or non-payable");
}
BOOST_AUTO_TEST_CASE(fallback_function_twice)
@@ -4873,7 +4873,7 @@ BOOST_AUTO_TEST_CASE(constant_constructor)
function test() constant {}
}
)";
- CHECK_ERROR(text, TypeError, "Constructor cannot be defined as constant.");
+ CHECK_ERROR(text, TypeError, "Constructor must be payable or non-payable");
}
BOOST_AUTO_TEST_CASE(external_constructor)