- added isPartOfExternalInterface to Declaration

- changed position for the constant specifier. now it goes after type: <type> <constant> <name> = <value>
- removed tests for constant functions, checkings for constant function doesn't belong to this story
This commit is contained in:
Liana Husikyan
2015-03-16 10:46:46 +01:00
parent 2ca23b2247
commit 8e6b2c10c3
3 changed files with 8 additions and 28 deletions
+1 -1
View File
@@ -3212,7 +3212,7 @@ BOOST_AUTO_TEST_CASE(const_state_variable)
char const* sourceCode = R"(
contract Foo {
function getX() constant returns (uint r) { return x; }
constant uint x = 56;
uint constant x = 56;
})";
compileAndRun(sourceCode);
BOOST_CHECK(callContractFunction("getX()") == encodeArgs(56));