From 075715cf151669058251c78b47c0b94fc913e74a Mon Sep 17 00:00:00 2001 From: Alex Beregszaszi Date: Tue, 18 Jul 2017 14:34:22 +0100 Subject: Do not use obscure CompilerStack methods in tests --- test/libsolidity/Metadata.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'test/libsolidity/Metadata.cpp') diff --git a/test/libsolidity/Metadata.cpp b/test/libsolidity/Metadata.cpp index 60bb2e4e..32cf910b 100644 --- a/test/libsolidity/Metadata.cpp +++ b/test/libsolidity/Metadata.cpp @@ -43,7 +43,9 @@ BOOST_AUTO_TEST_CASE(metadata_stamp) } )"; CompilerStack compilerStack; - BOOST_REQUIRE(compilerStack.compile(std::string(sourceCode))); + compilerStack.addSource("", std::string(sourceCode)); + /// NOTE: compiles without optimisations + ETH_TEST_REQUIRE_NO_THROW(compilerStack.compile(), "Compiling contract failed"); bytes const& bytecode = compilerStack.runtimeObject("test").bytecode; std::string const& metadata = compilerStack.onChainMetadata("test"); BOOST_CHECK(dev::test::isValidMetadata(metadata)); -- cgit v1.2.3