aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity
diff options
context:
space:
mode:
authorchriseth <c@ethdev.com>2016-09-02 06:39:24 +0800
committerchriseth <c@ethdev.com>2016-09-02 06:39:30 +0800
commit24ffc38575f7cb73315731a33ff75c40eb8bea42 (patch)
tree6ad312bbd086e94b9194e702b07dda6d913f6870 /libsolidity
parentb5d941d3d9f32193c7f9094dee20511585508f6a (diff)
downloaddexon-solidity-24ffc38575f7cb73315731a33ff75c40eb8bea42.tar.gz
dexon-solidity-24ffc38575f7cb73315731a33ff75c40eb8bea42.tar.zst
dexon-solidity-24ffc38575f7cb73315731a33ff75c40eb8bea42.zip
Do not use internal types for event parameters.
Diffstat (limited to 'libsolidity')
-rw-r--r--libsolidity/interface/InterfaceHandler.cpp3
1 files changed, 2 insertions, 1 deletions
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);
}