mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Update default evm version to paris
This commit is contained in:
committed by
Leo Alt
parent
939b916f4a
commit
d9d9ab30a2
@@ -22,7 +22,7 @@ set -e
|
||||
|
||||
# Requires $REPO_ROOT to be defined and "${REPO_ROOT}/scripts/common.sh" to be included before.
|
||||
|
||||
CURRENT_EVM_VERSION=london
|
||||
CURRENT_EVM_VERSION=paris
|
||||
|
||||
AVAILABLE_PRESETS=(
|
||||
legacy-no-optimize
|
||||
|
||||
@@ -1086,7 +1086,7 @@ BOOST_AUTO_TEST_CASE(evm_version)
|
||||
BOOST_CHECK(result["contracts"]["fileA"]["A"]["metadata"].asString().find("\"evmVersion\":\"paris\"") != string::npos);
|
||||
// test default
|
||||
result = compile(inputForVersion(""));
|
||||
BOOST_CHECK(result["contracts"]["fileA"]["A"]["metadata"].asString().find("\"evmVersion\":\"london\"") != string::npos);
|
||||
BOOST_CHECK(result["contracts"]["fileA"]["A"]["metadata"].asString().find("\"evmVersion\":\"paris\"") != string::npos);
|
||||
// test invalid
|
||||
result = compile(inputForVersion("\"evmVersion\": \"invalid\","));
|
||||
BOOST_CHECK(result["errors"][0]["message"].asString() == "Invalid EVM version requested.");
|
||||
|
||||
Reference in New Issue
Block a user