Merge pull request #2596 from ethereum/lll-test-optimiser

Run LLL contract tests with optimiser too
This commit is contained in:
Yoichi Hirai
2017-07-19 11:49:27 +02:00
committed by GitHub
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -345,7 +345,7 @@ protected:
if (!s_compiledEns) if (!s_compiledEns)
{ {
vector<string> errors; vector<string> errors;
s_compiledEns.reset(new bytes(compileLLL(ensCode, false, &errors))); s_compiledEns.reset(new bytes(compileLLL(ensCode, dev::test::Options::get().optimize, &errors)));
BOOST_REQUIRE(errors.empty()); BOOST_REQUIRE(errors.empty());
} }
sendMessage(*s_compiledEns, true); sendMessage(*s_compiledEns, true);
+1 -1
View File
@@ -396,7 +396,7 @@ protected:
if (!s_compiledErc20) if (!s_compiledErc20)
{ {
vector<string> errors; vector<string> errors;
s_compiledErc20.reset(new bytes(compileLLL(erc20Code, false, &errors))); s_compiledErc20.reset(new bytes(compileLLL(erc20Code, dev::test::Options::get().optimize, &errors)));
BOOST_REQUIRE(errors.empty()); BOOST_REQUIRE(errors.empty());
} }
sendMessage(*s_compiledErc20, true); sendMessage(*s_compiledErc20, true);