diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2017-07-17 18:54:02 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2017-07-26 22:17:07 +0800 |
commit | 30012db396793efad5dba9a2bbb64d34994709ce (patch) | |
tree | 6270037929123b5a95038a6bd7f3b6a305d516ac /test/libsolidity/Metadata.cpp | |
parent | 6848199b66d9cadae901f71dcf944fe9aa927eeb (diff) | |
download | dexon-solidity-30012db396793efad5dba9a2bbb64d34994709ce.tar.gz dexon-solidity-30012db396793efad5dba9a2bbb64d34994709ce.tar.zst dexon-solidity-30012db396793efad5dba9a2bbb64d34994709ce.zip |
Add CompilerStack::setOptimiserSettings
Diffstat (limited to 'test/libsolidity/Metadata.cpp')
-rw-r--r-- | test/libsolidity/Metadata.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/libsolidity/Metadata.cpp b/test/libsolidity/Metadata.cpp index ce1a7b18..e4820ad2 100644 --- a/test/libsolidity/Metadata.cpp +++ b/test/libsolidity/Metadata.cpp @@ -44,7 +44,8 @@ BOOST_AUTO_TEST_CASE(metadata_stamp) )"; CompilerStack compilerStack; compilerStack.addSource("", std::string(sourceCode)); - ETH_TEST_REQUIRE_NO_THROW(compilerStack.compile(dev::test::Options::get().optimize), "Compiling contract failed"); + compilerStack.setOptimiserSettings(dev::test::Options::get().optimize); + ETH_TEST_REQUIRE_NO_THROW(compilerStack.compile(), "Compiling contract failed"); bytes const& bytecode = compilerStack.runtimeObject("test").bytecode; std::string const& metadata = compilerStack.metadata("test"); BOOST_CHECK(dev::test::isValidMetadata(metadata)); |