aboutsummaryrefslogtreecommitdiffstats
path: root/InterfaceHandler.cpp
diff options
context:
space:
mode:
authorLefteris Karapetsas <lefteris@refu.co>2014-12-19 17:48:59 +0800
committerLefteris Karapetsas <lefteris@refu.co>2014-12-19 17:48:59 +0800
commitd612bf1d17fc1ade5e477adf8b6390ae919ab9d9 (patch)
tree9a420cb569461a6b9b02dfd7614fcc8dcbba259a /InterfaceHandler.cpp
parent59835e9df19332397d6e16b25bfe0dac4807996c (diff)
downloaddexon-solidity-d612bf1d17fc1ade5e477adf8b6390ae919ab9d9.tar.gz
dexon-solidity-d612bf1d17fc1ade5e477adf8b6390ae919ab9d9.tar.zst
dexon-solidity-d612bf1d17fc1ade5e477adf8b6390ae919ab9d9.zip
Adding const attribute to ABI output
Diffstat (limited to 'InterfaceHandler.cpp')
-rw-r--r--InterfaceHandler.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/InterfaceHandler.cpp b/InterfaceHandler.cpp
index 5b5682ff..60971fbb 100644
--- a/InterfaceHandler.cpp
+++ b/InterfaceHandler.cpp
@@ -56,6 +56,7 @@ std::unique_ptr<std::string> InterfaceHandler::getABIInterface(ContractDefinitio
};
method["name"] = f->getName();
+ method["const"] = f->isDeclaredConst();
method["inputs"] = populateParameters(f->getParameters());
method["outputs"] = populateParameters(f->getReturnParameters());
methods.append(method);