aboutsummaryrefslogtreecommitdiffstats
path: root/InterfaceHandler.cpp
diff options
context:
space:
mode:
authorLiana Husikyan <liana@ethdev.com>2015-05-11 19:47:21 +0800
committerLiana Husikyan <liana@ethdev.com>2015-05-11 22:46:17 +0800
commit342afb10d56fd60b6d90ec928c84b0e2274512c5 (patch)
tree3b993b242b2239bc958b5a76c151c7427260af1f /InterfaceHandler.cpp
parent2bdbeaac9b84547394431620168445f47875f888 (diff)
downloaddexon-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.cpp10
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())