aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/ASTJSON.cpp
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2017-08-16 05:47:26 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2017-08-17 00:23:08 +0800
commit93be0dd92309c711e7a29dac5257067b837eb7f8 (patch)
treed5ed6dbbbfd8a81bcaa464806d3e4f5c4a3eea30 /test/libsolidity/ASTJSON.cpp
parent4449820be3b23cb074c8db77915a799b3ff31c49 (diff)
downloaddexon-solidity-93be0dd92309c711e7a29dac5257067b837eb7f8.tar
dexon-solidity-93be0dd92309c711e7a29dac5257067b837eb7f8.tar.gz
dexon-solidity-93be0dd92309c711e7a29dac5257067b837eb7f8.tar.bz2
dexon-solidity-93be0dd92309c711e7a29dac5257067b837eb7f8.tar.lz
dexon-solidity-93be0dd92309c711e7a29dac5257067b837eb7f8.tar.xz
dexon-solidity-93be0dd92309c711e7a29dac5257067b837eb7f8.tar.zst
dexon-solidity-93be0dd92309c711e7a29dac5257067b837eb7f8.zip
FunctionType comparison/identifer to support all statemutability levels
Diffstat (limited to 'test/libsolidity/ASTJSON.cpp')
-rw-r--r--test/libsolidity/ASTJSON.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/libsolidity/ASTJSON.cpp b/test/libsolidity/ASTJSON.cpp
index 4fb4f20c..31165922 100644
--- a/test/libsolidity/ASTJSON.cpp
+++ b/test/libsolidity/ASTJSON.cpp
@@ -221,7 +221,7 @@ BOOST_AUTO_TEST_CASE(function_type)
Json::Value retval = fun["children"][1]["children"][0];
BOOST_CHECK_EQUAL(retval["name"], "VariableDeclaration");
BOOST_CHECK_EQUAL(retval["attributes"]["name"], "");
- BOOST_CHECK_EQUAL(retval["attributes"]["type"], "function () constant external returns (uint256)");
+ BOOST_CHECK_EQUAL(retval["attributes"]["type"], "function () view external returns (uint256)");
funType = retval["children"][0];
BOOST_CHECK_EQUAL(funType["attributes"]["constant"], true);
BOOST_CHECK_EQUAL(funType["attributes"]["payable"], false);