mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #2262 from ethereum/interface-cleanup
Cleanup the external interfaces (ABI and Natspec)
This commit is contained in:
@@ -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(
|
||||
|
||||
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user