From 46cbb5525cd8c2f22667c605ee7ef4da34301797 Mon Sep 17 00:00:00 2001 From: Liana Husikyan Date: Tue, 17 Mar 2015 11:34:56 +0100 Subject: added anonymous to ABI --- AST.h | 2 +- ExpressionCompiler.cpp | 2 +- InterfaceHandler.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/AST.h b/AST.h index 5564d83d..37ddc657 100644 --- a/AST.h +++ b/AST.h @@ -570,7 +570,7 @@ public: std::vector> 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 { diff --git a/ExpressionCompiler.cpp b/ExpressionCompiler.cpp index bff27e9c..61b17f66 100644 --- a/ExpressionCompiler.cpp +++ b/ExpressionCompiler.cpp @@ -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; diff --git a/InterfaceHandler.cpp b/InterfaceHandler.cpp index 2b855e24..406d1e24 100644 --- a/InterfaceHandler.cpp +++ b/InterfaceHandler.cpp @@ -70,7 +70,7 @@ std::unique_ptr 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()) { -- cgit v1.2.3