mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Update gas cost tests.
This commit is contained in:
@@ -97,7 +97,12 @@ BOOST_AUTO_TEST_CASE(string_storage)
|
||||
auto evmVersion = solidity::test::CommonOptions::get().evmVersion();
|
||||
|
||||
if (evmVersion <= EVMVersion::byzantium())
|
||||
CHECK_DEPLOY_GAS(133045, 129731, evmVersion);
|
||||
{
|
||||
if (CommonOptions::get().useABIEncoderV1)
|
||||
CHECK_DEPLOY_GAS(133045, 129731, evmVersion);
|
||||
else
|
||||
CHECK_DEPLOY_GAS(152657, 135201, evmVersion);
|
||||
}
|
||||
// This is only correct on >=Constantinople.
|
||||
else if (!CommonOptions::get().useABIEncoderV1)
|
||||
{
|
||||
@@ -126,7 +131,7 @@ BOOST_AUTO_TEST_CASE(string_storage)
|
||||
{
|
||||
callContractFunction("f()");
|
||||
if (evmVersion == EVMVersion::byzantium())
|
||||
CHECK_GAS(21545, 21526, 20);
|
||||
CHECK_GAS(21712, 21555, 20);
|
||||
// This is only correct on >=Constantinople.
|
||||
else if (!CommonOptions::get().useABIEncoderV1)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user