mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Do not use internal types for event parameters.
This commit is contained in:
parent
b5d941d3d9
commit
24ffc38575
@ -92,9 +92,10 @@ string InterfaceHandler::abiInterface(ContractDefinition const& _contractDef)
|
|||||||
Json::Value params(Json::arrayValue);
|
Json::Value params(Json::arrayValue);
|
||||||
for (auto const& p: it->parameters())
|
for (auto const& p: it->parameters())
|
||||||
{
|
{
|
||||||
|
solAssert(!!p->annotation().type->interfaceType(false), "");
|
||||||
Json::Value input;
|
Json::Value input;
|
||||||
input["name"] = p->name();
|
input["name"] = p->name();
|
||||||
input["type"] = p->annotation().type->canonicalName(false);
|
input["type"] = p->annotation().type->interfaceType(false)->canonicalName(false);
|
||||||
input["indexed"] = p->isIndexed();
|
input["indexed"] = p->isIndexed();
|
||||||
params.append(input);
|
params.append(input);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user