aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2016-12-01 09:19:28 +0800
committerchriseth <c@ethdev.com>2016-12-01 23:04:00 +0800
commit4c15c465efa1af104c368c63ee715fd1051c7ef4 (patch)
treeff4db28556a96db154fcc5e70c921167e44e5c77
parentc88f34c7819f927cec1a2f1f93fc79d5262736bc (diff)
downloaddexon-solidity-4c15c465efa1af104c368c63ee715fd1051c7ef4.tar
dexon-solidity-4c15c465efa1af104c368c63ee715fd1051c7ef4.tar.gz
dexon-solidity-4c15c465efa1af104c368c63ee715fd1051c7ef4.tar.bz2
dexon-solidity-4c15c465efa1af104c368c63ee715fd1051c7ef4.tar.lz
dexon-solidity-4c15c465efa1af104c368c63ee715fd1051c7ef4.tar.xz
dexon-solidity-4c15c465efa1af104c368c63ee715fd1051c7ef4.tar.zst
dexon-solidity-4c15c465efa1af104c368c63ee715fd1051c7ef4.zip
Submit library addresses to the compiler in tests (and not link afterwards)
-rw-r--r--test/libsolidity/SolidityExecutionFramework.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/libsolidity/SolidityExecutionFramework.h b/test/libsolidity/SolidityExecutionFramework.h
index 0fab7aeb..03e3a881 100644
--- a/test/libsolidity/SolidityExecutionFramework.h
+++ b/test/libsolidity/SolidityExecutionFramework.h
@@ -56,7 +56,7 @@ public:
std::string sourceCode = "pragma solidity >=0.0;\n" + _sourceCode;
m_compiler.reset(false);
m_compiler.addSource("", sourceCode);
- if (!m_compiler.compile(m_optimize, m_optimizeRuns))
+ if (!m_compiler.compile(m_optimize, m_optimizeRuns, _libraryAddresses))
{
for (auto const& error: m_compiler.errors())
SourceReferenceFormatter::printExceptionInformation(
@@ -68,7 +68,6 @@ public:
BOOST_ERROR("Compiling contract failed");
}
eth::LinkerObject obj = m_compiler.object(_contractName);
- obj.link(_libraryAddresses);
BOOST_REQUIRE(obj.linkReferences.empty());
sendMessage(obj.bytecode + _arguments, true, _value);
return m_output;