aboutsummaryrefslogtreecommitdiffstats
path: root/CompilerStack.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'CompilerStack.cpp')
-rw-r--r--CompilerStack.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/CompilerStack.cpp b/CompilerStack.cpp
index 762edb52..ca9c75bc 100644
--- a/CompilerStack.cpp
+++ b/CompilerStack.cpp
@@ -333,6 +333,11 @@ void CompilerStack::resolveImports()
swap(m_sourceOrder, sourceOrder);
}
+std::string CompilerStack::defaultContractName() const
+{
+ return getContract("").contract->getName();
+}
+
CompilerStack::Contract const& CompilerStack::getContract(string const& _contractName) const
{
if (m_contracts.empty())