aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGav Wood <i@gavwood.com>2015-01-09 15:09:30 +0800
committerGav Wood <i@gavwood.com>2015-01-09 15:09:30 +0800
commit23eff4d24a18b6a82565dbf5074c4e1ed313bb9e (patch)
tree2d276c34f12a5bb5178abbb8f75091af8ffadae8
parent29591d6ecfaf1a00ac405b1a46fe366daa00bd71 (diff)
downloaddexon-solidity-23eff4d24a18b6a82565dbf5074c4e1ed313bb9e.tar
dexon-solidity-23eff4d24a18b6a82565dbf5074c4e1ed313bb9e.tar.gz
dexon-solidity-23eff4d24a18b6a82565dbf5074c4e1ed313bb9e.tar.bz2
dexon-solidity-23eff4d24a18b6a82565dbf5074c4e1ed313bb9e.tar.lz
dexon-solidity-23eff4d24a18b6a82565dbf5074c4e1ed313bb9e.tar.xz
dexon-solidity-23eff4d24a18b6a82565dbf5074c4e1ed313bb9e.tar.zst
dexon-solidity-23eff4d24a18b6a82565dbf5074c4e1ed313bb9e.zip
CLI tweaks.
-rw-r--r--CompilerStack.cpp6
-rw-r--r--CompilerStack.h2
2 files changed, 4 insertions, 4 deletions
diff --git a/CompilerStack.cpp b/CompilerStack.cpp
index a0d6691d..174f9cd2 100644
--- a/CompilerStack.cpp
+++ b/CompilerStack.cpp
@@ -141,15 +141,15 @@ void CompilerStack::streamAssembly(ostream& _outStream, string const& _contractN
string const& CompilerStack::getInterface(string const& _contractName) const
{
- return getJsonDocumentation(_contractName, DocumentationType::ABI_INTERFACE);
+ return getMetadata(_contractName, DocumentationType::ABI_INTERFACE);
}
string const& CompilerStack::getSolidityInterface(string const& _contractName) const
{
- return getJsonDocumentation(_contractName, DocumentationType::ABI_SOLIDITY_INTERFACE);
+ return getMetadata(_contractName, DocumentationType::ABI_SOLIDITY_INTERFACE);
}
-string const& CompilerStack::getJsonDocumentation(string const& _contractName, DocumentationType _type) const
+string const& CompilerStack::getMetadata(string const& _contractName, DocumentationType _type) const
{
if (!m_parseSuccessful)
BOOST_THROW_EXCEPTION(CompilerError() << errinfo_comment("Parsing was not successful."));
diff --git a/CompilerStack.h b/CompilerStack.h
index 91836585..afc9a516 100644
--- a/CompilerStack.h
+++ b/CompilerStack.h
@@ -90,7 +90,7 @@ public:
/// Prerequisite: Successful call to parse or compile.
/// @param type The type of the documentation to get.
/// Can be one of 4 types defined at @c DocumentationType
- std::string const& getJsonDocumentation(std::string const& _contractName, DocumentationType _type) const;
+ std::string const& getMetadata(std::string const& _contractName, DocumentationType _type) const;
/// @returns the previously used scanner, useful for counting lines during error reporting.
Scanner const& getScanner(std::string const& _sourceName = "") const;