mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Export all events.
Update tests. Additional tests Revert changes to the Natspec
This commit is contained in:
@@ -101,7 +101,7 @@ Json::Value ABI::generate(ContractDefinition const& _contractDef)
|
||||
method["stateMutability"] = stateMutabilityToString(externalFunctionType->stateMutability());
|
||||
abi.emplace(std::move(method));
|
||||
}
|
||||
for (auto const& it: _contractDef.definedInterfaceEvents())
|
||||
for (auto const& it: _contractDef.interfaceEvents())
|
||||
{
|
||||
Json::Value event{Json::objectValue};
|
||||
event["type"] = "event";
|
||||
|
||||
@@ -82,7 +82,11 @@ Json::Value Natspec::userDocumentation(ContractDefinition const& _contractDef)
|
||||
{
|
||||
string value = extractDoc(event->annotation().docTags, "notice");
|
||||
if (!value.empty())
|
||||
doc["events"][event->functionType(true)->externalSignature()]["notice"] = value;
|
||||
{
|
||||
Json::Value eventDoc{Json::objectValue};
|
||||
eventDoc["notice"] = value;
|
||||
doc["events"][event->functionType(true)->externalSignature()].append(std::move(eventDoc));
|
||||
}
|
||||
}
|
||||
|
||||
for (auto const& error: _contractDef.interfaceErrors())
|
||||
|
||||
Reference in New Issue
Block a user