Removing events from Solidity Interface

This commit is contained in:
Lefteris Karapetsas 2015-02-16 17:15:04 +01:00
parent 241c86a2e8
commit 500cb69f12

View File

@ -108,16 +108,7 @@ unique_ptr<string> InterfaceHandler::getABISolidityInterface(ContractDefinition
ret.pop_back(); ret.pop_back();
ret += "{}"; 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 + "}")); return unique_ptr<string>(new string(ret + "}"));
} }