mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
isoltest: Fix gas tests always being enforced regardless of evm version
This commit is contained in:
parent
7ebf71f315
commit
eb2425bd7c
@ -60,7 +60,6 @@ IsolTestOptions::IsolTestOptions():
|
|||||||
CommonOptions(description)
|
CommonOptions(description)
|
||||||
{
|
{
|
||||||
enforceViaYul = true;
|
enforceViaYul = true;
|
||||||
enforceGasTest = (evmVersion() == langutil::EVMVersion{});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void IsolTestOptions::addOptions()
|
void IsolTestOptions::addOptions()
|
||||||
@ -84,6 +83,8 @@ bool IsolTestOptions::parse(int _argc, char const* const* _argv)
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
enforceGasTest = enforceGasTest || (evmVersion() == langutil::EVMVersion{});
|
||||||
|
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user