mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #12207 from ethereum/fix-isoltest-enforce-gas-default
Fix defaults for `--enforce-gas-cost` in isoltest
This commit is contained in:
commit
cede36930d
@ -60,7 +60,6 @@ IsolTestOptions::IsolTestOptions():
|
||||
CommonOptions(description)
|
||||
{
|
||||
enforceViaYul = true;
|
||||
enforceGasTest = (evmVersion() == langutil::EVMVersion{});
|
||||
}
|
||||
|
||||
void IsolTestOptions::addOptions()
|
||||
@ -84,6 +83,8 @@ bool IsolTestOptions::parse(int _argc, char const* const* _argv)
|
||||
return false;
|
||||
}
|
||||
|
||||
enforceGasTest = enforceGasTest || (evmVersion() == langutil::EVMVersion{} && !useABIEncoderV1);
|
||||
|
||||
return res;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user