From 24ffc38575f7cb73315731a33ff75c40eb8bea42 Mon Sep 17 00:00:00 2001 From: chriseth Date: Fri, 2 Sep 2016 00:39:24 +0200 Subject: Do not use internal types for event parameters. --- libsolidity/interface/InterfaceHandler.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libsolidity/interface/InterfaceHandler.cpp b/libsolidity/interface/InterfaceHandler.cpp index 5d24e1bf..d39f8285 100644 --- a/libsolidity/interface/InterfaceHandler.cpp +++ b/libsolidity/interface/InterfaceHandler.cpp @@ -92,9 +92,10 @@ string InterfaceHandler::abiInterface(ContractDefinition const& _contractDef) Json::Value params(Json::arrayValue); for (auto const& p: it->parameters()) { + solAssert(!!p->annotation().type->interfaceType(false), ""); Json::Value input; input["name"] = p->name(); - input["type"] = p->annotation().type->canonicalName(false); + input["type"] = p->annotation().type->interfaceType(false)->canonicalName(false); input["indexed"] = p->isIndexed(); params.append(input); } -- cgit v1.2.3