aboutsummaryrefslogtreecommitdiffstats
path: root/InterfaceHandler.cpp
diff options
context:
space:
mode:
authorLiana Husikyan <liana@ethdev.com>2015-05-11 22:24:04 +0800
committerLiana Husikyan <liana@ethdev.com>2015-05-11 23:16:52 +0800
commit78a343d2ff8f49184362d4f12f8fa806f05f969d (patch)
tree666311403d959771ce555cb54eec7b4f485453b6 /InterfaceHandler.cpp
parent342afb10d56fd60b6d90ec928c84b0e2274512c5 (diff)
downloaddexon-solidity-78a343d2ff8f49184362d4f12f8fa806f05f969d.tar.gz
dexon-solidity-78a343d2ff8f49184362d4f12f8fa806f05f969d.tar.zst
dexon-solidity-78a343d2ff8f49184362d4f12f8fa806f05f969d.zip
updated unit test
Diffstat (limited to 'InterfaceHandler.cpp')
-rw-r--r--InterfaceHandler.cpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/InterfaceHandler.cpp b/InterfaceHandler.cpp
index e266f8d6..a49c4dc3 100644
--- a/InterfaceHandler.cpp
+++ b/InterfaceHandler.cpp
@@ -60,10 +60,14 @@ std::unique_ptr<std::string> InterfaceHandler::getABIInterface(ContractDefinitio
method["type"] = "function";
method["name"] = it.second->getDeclaration().getName();
method["constant"] = it.second->isConstant();
- method["inputs"] = populateParameters(externalFunctionType->getParameterNames(),
- externalFunctionType->getParameterTypeNames());
- method["outputs"] = populateParameters(externalFunctionType->getReturnParameterNames(),
- externalFunctionType->getReturnParameterTypeNames());
+ method["inputs"] = populateParameters(
+ externalFunctionType->getParameterNames(),
+ externalFunctionType->getParameterTypeNames()
+ );
+ method["outputs"] = populateParameters(
+ externalFunctionType->getReturnParameterNames(),
+ externalFunctionType->getReturnParameterTypeNames()
+ );
abi.append(method);
}
if (_contractDef.getConstructor())