aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2018-03-13 01:11:08 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2018-03-13 01:13:19 +0800
commita59d6d2e5303e714a6e66a5d11bd6a9c2e904e4e (patch)
tree964e42073f50a378cd2a371f40bbd30a3430bb57 /test/libsolidity
parent15a0b97f61e76e4a5615f04c116688bf98367076 (diff)
downloaddexon-solidity-a59d6d2e5303e714a6e66a5d11bd6a9c2e904e4e.tar.gz
dexon-solidity-a59d6d2e5303e714a6e66a5d11bd6a9c2e904e4e.tar.zst
dexon-solidity-a59d6d2e5303e714a6e66a5d11bd6a9c2e904e4e.zip
Support constantinople in evm-version
Diffstat (limited to 'test/libsolidity')
-rw-r--r--test/libsolidity/StandardCompiler.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/libsolidity/StandardCompiler.cpp b/test/libsolidity/StandardCompiler.cpp
index 4c8918be..dd6eb7c4 100644
--- a/test/libsolidity/StandardCompiler.cpp
+++ b/test/libsolidity/StandardCompiler.cpp
@@ -752,6 +752,8 @@ BOOST_AUTO_TEST_CASE(evm_version)
BOOST_CHECK(result["contracts"]["fileA"]["A"]["metadata"].asString().find("\"evmVersion\":\"spuriousDragon\"") != string::npos);
result = compile(inputForVersion("\"evmVersion\": \"byzantium\","));
BOOST_CHECK(result["contracts"]["fileA"]["A"]["metadata"].asString().find("\"evmVersion\":\"byzantium\"") != string::npos);
+ result = compile(inputForVersion("\"evmVersion\": \"constantinople\","));
+ BOOST_CHECK(result["contracts"]["fileA"]["A"]["metadata"].asString().find("\"evmVersion\":\"constantinople\"") != string::npos);
// test default
result = compile(inputForVersion(""));
BOOST_CHECK(result["contracts"]["fileA"]["A"]["metadata"].asString().find("\"evmVersion\":\"byzantium\"") != string::npos);