Merge pull request #12591 from ethereum/fuzz-latest-evm-version

Code transform fuzzer: Only test against latest EVM version.
This commit is contained in:
Bhargava Shastry 2022-01-28 10:53:54 +01:00 committed by GitHub
commit b897d5d7c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -60,8 +60,9 @@ DEFINE_PROTO_FUZZER(Program const& _input)
filterUnboundedLoops filterUnboundedLoops
); );
string yul_source = converter.programToString(_input); string yul_source = converter.programToString(_input);
// Fuzzer also fuzzes the EVM version field. // Do not fuzz the EVM Version field.
langutil::EVMVersion version = converter.version(); // See https://github.com/ethereum/solidity/issues/12590
langutil::EVMVersion version;
EVMHost hostContext(version, evmone); EVMHost hostContext(version, evmone);
hostContext.reset(); hostContext.reset();