aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2017-07-19 05:52:18 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2017-07-19 05:52:18 +0800
commit407a6e1a0f9d40812567cf06dd9fac156ea4063d (patch)
treed80399f5e55c02c272e250d23a970cdbdfc70c94 /test
parent01fbc636239f78134b37f9dedeacf40455ee2e0c (diff)
downloaddexon-solidity-407a6e1a0f9d40812567cf06dd9fac156ea4063d.tar
dexon-solidity-407a6e1a0f9d40812567cf06dd9fac156ea4063d.tar.gz
dexon-solidity-407a6e1a0f9d40812567cf06dd9fac156ea4063d.tar.bz2
dexon-solidity-407a6e1a0f9d40812567cf06dd9fac156ea4063d.tar.lz
dexon-solidity-407a6e1a0f9d40812567cf06dd9fac156ea4063d.tar.xz
dexon-solidity-407a6e1a0f9d40812567cf06dd9fac156ea4063d.tar.zst
dexon-solidity-407a6e1a0f9d40812567cf06dd9fac156ea4063d.zip
Run LLL contract tests with optimiser too
Diffstat (limited to 'test')
-rw-r--r--test/contracts/LLL_ENS.cpp2
-rw-r--r--test/contracts/LLL_ERC20.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/test/contracts/LLL_ENS.cpp b/test/contracts/LLL_ENS.cpp
index 3df1546d..c5fe8a82 100644
--- a/test/contracts/LLL_ENS.cpp
+++ b/test/contracts/LLL_ENS.cpp
@@ -345,7 +345,7 @@ protected:
if (!s_compiledEns)
{
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());
}
sendMessage(*s_compiledEns, true);
diff --git a/test/contracts/LLL_ERC20.cpp b/test/contracts/LLL_ERC20.cpp
index 3ee1aa98..25665d64 100644
--- a/test/contracts/LLL_ERC20.cpp
+++ b/test/contracts/LLL_ERC20.cpp
@@ -396,7 +396,7 @@ protected:
if (!s_compiledErc20)
{
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());
}
sendMessage(*s_compiledErc20, true);