Rename CompilerStack.interface to CompilerStack.contractABI

This commit is contained in:
Alex Beregszaszi
2017-05-19 15:57:36 +01:00
parent 6f9428e900
commit 8169e149c9
4 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -444,7 +444,7 @@ map<string, unsigned> CompilerStack::sourceIndices() const
return indices;
}
Json::Value const& CompilerStack::interface(string const& _contractName) const
Json::Value const& CompilerStack::contractABI(string const& _contractName) const
{
return metadata(_contractName, DocumentationType::ABIInterface);
}
+2 -2
View File
@@ -173,9 +173,9 @@ public:
/// @returns a mapping assigning each source name its index inside the vector returned
/// by sourceNames().
std::map<std::string, unsigned> sourceIndices() const;
/// @returns a JSON representing the contract interface.
/// @returns a JSON representing the contract ABI.
/// Prerequisite: Successful call to parse or compile.
Json::Value const& interface(std::string const& _contractName = "") const;
Json::Value const& contractABI(std::string const& _contractName = "") const;
/// @returns a JSON representing the contract's documentation.
/// Prerequisite: Successful call to parse or compile.
/// @param type The type of the documentation to get.