added anonymous to ABI

This commit is contained in:
Liana Husikyan 2015-03-17 11:34:56 +01:00
parent 5a5577f5a5
commit 46cbb5525c
3 changed files with 3 additions and 3 deletions

2
AST.h
View File

@ -570,7 +570,7 @@ public:
std::vector<ASTPointer<VariableDeclaration>> const& getParameters() const { return m_parameters->getParameters(); }
ParameterList const& getParameterList() const { return *m_parameters; }
bool IsAnonymous() const { return m_anonymous; }
bool isAnonymous() const { return m_anonymous; }
virtual TypePointer getType(ContractDefinition const* = nullptr) const override
{

View File

@ -542,7 +542,7 @@ bool ExpressionCompiler::visit(FunctionCall const& _functionCall)
appendTypeConversion(*arguments[arg - 1]->getType(),
*function.getParameterTypes()[arg - 1], true);
}
if (!event.IsAnonymous())
if (!event.isAnonymous())
{
m_context << u256(h256::Arith(dev::sha3(function.getCanonicalSignature(event.getName()))));
++numIndexed;

View File

@ -70,7 +70,7 @@ std::unique_ptr<std::string> InterfaceHandler::getABIInterface(ContractDefinitio
Json::Value event;
event["type"] = "event";
event["name"] = it->getName();
//todo add anonymous!;
event["anonymous"] = it->isAnonymous();
Json::Value params(Json::arrayValue);
for (auto const& p: it->getParameters())
{