|
@ -55,15 +55,15 @@ std::unique_ptr<std::string> InterfaceHandler::getABIInterface(ContractDefinitio |
|
|
|
|
|
|
|
|
for (auto it: _contractDef.getInterfaceFunctions()) |
|
|
for (auto it: _contractDef.getInterfaceFunctions()) |
|
|
{ |
|
|
{ |
|
|
|
|
|
auto externalFunctionType = it.second->externalFunctionType(); |
|
|
Json::Value method; |
|
|
Json::Value method; |
|
|
method["type"] = "function"; |
|
|
method["type"] = "function"; |
|
|
method["name"] = it.second->getDeclaration().getName(); |
|
|
method["name"] = it.second->getDeclaration().getName(); |
|
|
method["constant"] = it.second->isConstant(); |
|
|
method["constant"] = it.second->isConstant(); |
|
|
method["inputs"] = populateParameters(it.second->getParameterNames(), |
|
|
method["inputs"] = populateParameters(externalFunctionType->getParameterNames(), |
|
|
it.second->getParameterTypeNames()); |
|
|
externalFunctionType->getParameterTypeNames()); |
|
|
method["outputs"] = populateParameters(it.second->getReturnParameterNames(), |
|
|
method["outputs"] = populateParameters(externalFunctionType->getReturnParameterNames(), |
|
|
it.second->getReturnParameterTypeNames()); |
|
|
externalFunctionType->getReturnParameterTypeNames()); |
|
|
abi.append(method); |
|
|
abi.append(method); |
|
|
} |
|
|
} |
|
|
if (_contractDef.getConstructor()) |
|
|
if (_contractDef.getConstructor()) |
|
|