Merge pull request #996 from chriseth/externaltypesforevents

Do not use internal types for event parameters.
This commit is contained in:
chriseth 2016-09-02 16:15:22 +02:00 committed by GitHub
commit 341c9436a8

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