diff options
author | Liana Husikyan <liana@ethdev.com> | 2015-05-11 19:47:21 +0800 |
---|---|---|
committer | Liana Husikyan <liana@ethdev.com> | 2015-05-11 22:46:17 +0800 |
commit | 342afb10d56fd60b6d90ec928c84b0e2274512c5 (patch) | |
tree | 3b993b242b2239bc958b5a76c151c7427260af1f /InterfaceHandler.cpp | |
parent | 2bdbeaac9b84547394431620168445f47875f888 (diff) | |
download | dexon-solidity-342afb10d56fd60b6d90ec928c84b0e2274512c5.tar.gz dexon-solidity-342afb10d56fd60b6d90ec928c84b0e2274512c5.tar.zst dexon-solidity-342afb10d56fd60b6d90ec928c84b0e2274512c5.zip |
bug in abi. fixed external type for return parameters
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()) |