aboutsummaryrefslogtreecommitdiffstats
path: root/CompilerStack.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'CompilerStack.cpp')
-rw-r--r--CompilerStack.cpp22
1 files changed, 2 insertions, 20 deletions
diff --git a/CompilerStack.cpp b/CompilerStack.cpp
index b0642349..11d90d08 100644
--- a/CompilerStack.cpp
+++ b/CompilerStack.cpp
@@ -137,12 +137,12 @@ bytes const& CompilerStack::getBytecode(string const& _contractName) const
return getContract(_contractName).bytecode;
}
-bytes const& CompilerStack::getRuntimeBytecode(std::string const& _contractName) const
+bytes const& CompilerStack::getRuntimeBytecode(string const& _contractName) const
{
return getContract(_contractName).runtimeBytecode;
}
-dev::h256 CompilerStack::getContractCodeHash(std::string const& _contractName) const
+dev::h256 CompilerStack::getContractCodeHash(string const& _contractName) const
{
return dev::sha3(getRuntimeBytecode(_contractName));
}
@@ -192,24 +192,6 @@ string const& CompilerStack::getMetadata(string const& _contractName, Documentat
return *(*doc);
}
-std::string const CompilerStack::getFunctionHashes(std::string const& _contractName)
-{
- if (!m_parseSuccessful)
- BOOST_THROW_EXCEPTION(CompilerError() << errinfo_comment("Parsing was not successful."));
-
- std::string ret = "";
- Contract const& contract = getContract(_contractName);
- auto interfaceFunctions = contract.contract->getInterfaceFunctions();
-
- for (auto const& it: interfaceFunctions)
- {
- ret += it.first.abridged();
- ret += " :";
- ret += it.second->getName() + "\n";
- }
- return ret;
-}
-
Scanner const& CompilerStack::getScanner(string const& _sourceName) const
{
return *getSource(_sourceName).scanner;