diff options
Diffstat (limited to 'InterfaceHandler.cpp')
-rw-r--r-- | InterfaceHandler.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/InterfaceHandler.cpp b/InterfaceHandler.cpp index d4958475..e266f8d6 100644 --- a/InterfaceHandler.cpp +++ b/InterfaceHandler.cpp @@ -55,15 +55,15 @@ std::unique_ptr<std::string> InterfaceHandler::getABIInterface(ContractDefinitio for (auto it: _contractDef.getInterfaceFunctions()) { - + auto externalFunctionType = it.second->externalFunctionType(); Json::Value method; method["type"] = "function"; method["name"] = it.second->getDeclaration().getName(); method["constant"] = it.second->isConstant(); - method["inputs"] = populateParameters(it.second->getParameterNames(), - it.second->getParameterTypeNames()); - method["outputs"] = populateParameters(it.second->getReturnParameterNames(), - it.second->getReturnParameterTypeNames()); + method["inputs"] = populateParameters(externalFunctionType->getParameterNames(), + externalFunctionType->getParameterTypeNames()); + method["outputs"] = populateParameters(externalFunctionType->getReturnParameterNames(), + externalFunctionType->getReturnParameterTypeNames()); abi.append(method); } if (_contractDef.getConstructor()) |