mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Add CompilerStack::setOptimiserSettings
This commit is contained in:
1 parent
6848199b66
commit
30012db396
10 files changed
+27
-16
No files matched your search
@@ -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));
|
||||
|
||||
Reference in new issue
Block a user