Merge pull request #2262 from ethereum/interface-cleanup

Cleanup the external interfaces (ABI and Natspec)
This commit is contained in:
chriseth
2017-05-19 17:55:33 +02:00
committed by GitHub
14 changed files with 369 additions and 254 deletions
+1 -1
View File
@@ -44,7 +44,7 @@ public:
{
ETH_TEST_REQUIRE_NO_THROW(m_compilerStack.parseAndAnalyze("pragma solidity >=0.0;\n" + _code), "Parsing contract failed");
Json::Value generatedInterface = m_compilerStack.metadata("", DocumentationType::ABIInterface);
Json::Value generatedInterface = m_compilerStack.contractABI("");
Json::Value expectedInterface;
m_reader.parse(_expectedInterfaceString, expectedInterface);
BOOST_CHECK_MESSAGE(
+2 -2
View File
@@ -49,9 +49,9 @@ public:
Json::Value generatedDocumentation;
if (_userDocumentation)
generatedDocumentation = m_compilerStack.metadata("", DocumentationType::NatspecUser);
generatedDocumentation = m_compilerStack.natspec("", DocumentationType::NatspecUser);
else
generatedDocumentation = m_compilerStack.metadata("", DocumentationType::NatspecDev);
generatedDocumentation = m_compilerStack.natspec("", DocumentationType::NatspecDev);
Json::Value expectedDocumentation;
m_reader.parse(_expectedDocumentationString, expectedDocumentation);
BOOST_CHECK_MESSAGE(