aboutsummaryrefslogtreecommitdiffstats
path: root/CompilerStack.cpp
diff options
context:
space:
mode:
authorGav Wood <i@gavwood.com>2015-02-15 08:00:09 +0800
committerGav Wood <i@gavwood.com>2015-02-15 08:00:09 +0800
commitf27ecde2566fd43bb10e73d82be530478fa6aee1 (patch)
tree744aece34bd981ccf69696623b97e09ed8507548 /CompilerStack.cpp
parent41647fd75f3c131ecade223fc58a1f6eed2ee235 (diff)
downloaddexon-solidity-f27ecde2566fd43bb10e73d82be530478fa6aee1.tar
dexon-solidity-f27ecde2566fd43bb10e73d82be530478fa6aee1.tar.gz
dexon-solidity-f27ecde2566fd43bb10e73d82be530478fa6aee1.tar.bz2
dexon-solidity-f27ecde2566fd43bb10e73d82be530478fa6aee1.tar.lz
dexon-solidity-f27ecde2566fd43bb10e73d82be530478fa6aee1.tar.xz
dexon-solidity-f27ecde2566fd43bb10e73d82be530478fa6aee1.tar.zst
dexon-solidity-f27ecde2566fd43bb10e73d82be530478fa6aee1.zip
Working, albeit slowly, non-NatSpec transaction confirmations.
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())