Updates tests to version 0.6.0.

This commit is contained in:
Erik Kundt 2019-09-20 20:23:10 +02:00
parent 9a42a93955
commit e3a29ffcd3
6 changed files with 8 additions and 8 deletions

View File

@ -43,7 +43,7 @@ namespace
{
static char const* registrarCode = R"DELIMITER(
pragma solidity >=0.4.0 <0.6.0;
pragma solidity >=0.4.0 <0.7.0;
contract NameRegister {
function addr(string memory _name) public view returns (address o_owner);

View File

@ -53,7 +53,7 @@ static char const* registrarCode = R"DELIMITER(
// @authors:
// Gav Wood <g@ethdev.com>
pragma solidity >=0.4.0 <0.6.0;
pragma solidity >=0.4.0 <0.7.0;
contract Registrar {
event Changed(string indexed name);

View File

@ -56,7 +56,7 @@ static char const* walletCode = R"DELIMITER(
// some number (specified in constructor) of the set of owners (specified in the constructor, modifiable) before the
// interior is executed.
pragma solidity >=0.4.0 <0.6.0;
pragma solidity >=0.4.0 <0.7.0;
contract multiowned {

View File

@ -96,17 +96,17 @@ BOOST_AUTO_TEST_CASE(string_storage)
compileAndRun(sourceCode);
if (Options::get().evmVersion() <= EVMVersion::byzantium())
CHECK_DEPLOY_GAS(134209, 130895);
CHECK_DEPLOY_GAS(134145, 130831);
// This is only correct on >=Constantinople.
else if (Options::get().useABIEncoderV2)
{
if (Options::get().optimizeYul)
CHECK_DEPLOY_GAS(127785, 127785);
CHECK_DEPLOY_GAS(127785, 127721);
else
CHECK_DEPLOY_GAS(151587, 135371);
}
else
CHECK_DEPLOY_GAS(126993, 119723);
CHECK_DEPLOY_GAS(126929, 119659);
if (Options::get().evmVersion() >= EVMVersion::byzantium())
{

View File

@ -1,4 +1,4 @@
pragma solidity ^0.5.7;
pragma solidity >=0.5.7 <0.7.0;
contract InvalidTest {

View File

@ -1,4 +1,4 @@
pragma solidity ^0.5.0;
pragma solidity >=0.4.0 <0.7.0;
contract ERC20 {
event Transfer(address indexed from, address indexed to, uint256 value);