Do not use internal types for event parameters.

This commit is contained in:
chriseth 2016-09-02 00:39:24 +02:00
parent b5d941d3d9
commit 24ffc38575

View File

@ -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);
}