Merge pull request #6339 from ethereum/lll-test-fix

Fix LLL tests using the opimiser
This commit is contained in:
chriseth 2019-03-21 08:54:07 +01:00 committed by GitHub
commit ebb8c1758e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -56,7 +56,12 @@ public:
BOOST_REQUIRE(_libraryAddresses.empty());
std::vector<std::string> errors;
bytes bytecode = lll::compileLLL(_sourceCode, dev::test::Options::get().evmVersion(), m_optimize, &errors);
bytes bytecode = lll::compileLLL(
_sourceCode,
dev::test::Options::get().evmVersion(),
m_optimiserSettings == solidity::OptimiserSettings::enabled(),
&errors
);
if (!errors.empty())
{
for (auto const& error: errors)