diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2016-11-15 18:25:39 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2016-11-18 01:23:35 +0800 |
commit | 60e9c901e9f4a314fca1acd374c13841d7be3963 (patch) | |
tree | 0ad21c3764c347d5b0b9558cfc44f15c43c825d8 /libsolidity/interface/InterfaceHandler.cpp | |
parent | ceeb8f4a2b20a54c38792c7451969b660b144246 (diff) | |
download | dexon-solidity-60e9c901e9f4a314fca1acd374c13841d7be3963.tar.gz dexon-solidity-60e9c901e9f4a314fca1acd374c13841d7be3963.tar.zst dexon-solidity-60e9c901e9f4a314fca1acd374c13841d7be3963.zip |
Include payable for the constructor in the ABI
Diffstat (limited to 'libsolidity/interface/InterfaceHandler.cpp')
-rw-r--r-- | libsolidity/interface/InterfaceHandler.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libsolidity/interface/InterfaceHandler.cpp b/libsolidity/interface/InterfaceHandler.cpp index 0f7b6c35..9944bb22 100644 --- a/libsolidity/interface/InterfaceHandler.cpp +++ b/libsolidity/interface/InterfaceHandler.cpp @@ -68,6 +68,7 @@ Json::Value InterfaceHandler::abiInterface(ContractDefinition const& _contractDe method["type"] = "constructor"; auto externalFunction = FunctionType(*_contractDef.constructor(), false).interfaceFunctionType(); solAssert(!!externalFunction, ""); + method["payable"] = externalFunction->isPayable(); method["inputs"] = populateParameters( externalFunction->parameterNames(), externalFunction->parameterTypeNames(_contractDef.isLibrary()) |