aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/SolidityExecutionFramework.h
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2017-08-22 04:49:58 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2017-10-19 06:54:32 +0800
commit2ce35b77becab2395dce218b106a7ce904a1b141 (patch)
treea495989b6c5eabeb1620bc71fef36fad252e6d6c /test/libsolidity/SolidityExecutionFramework.h
parent039cc25b1fd875e9f4cfd0f0649f2b4ed67640e1 (diff)
downloaddexon-solidity-2ce35b77becab2395dce218b106a7ce904a1b141.tar.gz
dexon-solidity-2ce35b77becab2395dce218b106a7ce904a1b141.tar.zst
dexon-solidity-2ce35b77becab2395dce218b106a7ce904a1b141.zip
Implement CompilerStack.lastContractName()
Diffstat (limited to 'test/libsolidity/SolidityExecutionFramework.h')
-rw-r--r--test/libsolidity/SolidityExecutionFramework.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/libsolidity/SolidityExecutionFramework.h b/test/libsolidity/SolidityExecutionFramework.h
index 342d0875..b0daaba9 100644
--- a/test/libsolidity/SolidityExecutionFramework.h
+++ b/test/libsolidity/SolidityExecutionFramework.h
@@ -69,7 +69,7 @@ public:
);
BOOST_ERROR("Compiling contract failed");
}
- eth::LinkerObject obj = m_compiler.object(_contractName);
+ eth::LinkerObject obj = m_compiler.object(_contractName.empty() ? m_compiler.lastContractName() : _contractName);
BOOST_REQUIRE(obj.linkReferences.empty());
sendMessage(obj.bytecode + _arguments, true, _value);
return m_output;