mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Removing events from Solidity Interface
This commit is contained in:
parent
241c86a2e8
commit
500cb69f12
@ -108,16 +108,7 @@ unique_ptr<string> InterfaceHandler::getABISolidityInterface(ContractDefinition
|
||||
ret.pop_back();
|
||||
ret += "{}";
|
||||
}
|
||||
for (auto const& it: _contractDef.getInterfaceEvents())
|
||||
{
|
||||
std::string params;
|
||||
for (auto const& p: it->getParameters())
|
||||
params += (params.empty() ? "(" : ",") + p->getType()->toString() + (p->isIndexed() ? " indexed " : " ") + p->getName();
|
||||
if (!params.empty())
|
||||
params += ")";
|
||||
|
||||
ret += "event " + it->getName() + params + ";";
|
||||
}
|
||||
return unique_ptr<string>(new string(ret + "}"));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user