diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2016-06-18 18:11:55 +0800 |
---|---|---|
committer | chriseth <c@ethdev.com> | 2016-09-06 03:28:18 +0800 |
commit | a34f2f1a316d6093c14045ee8423d913ac01421d (patch) | |
tree | 79a97492be7e5a436498dc3a0a6ffe2174c36ab4 /libsolidity/interface/InterfaceHandler.cpp | |
parent | e2b787cdd0717bf074cc03634d580f7713568792 (diff) | |
download | dexon-solidity-a34f2f1a316d6093c14045ee8423d913ac01421d.tar.gz dexon-solidity-a34f2f1a316d6093c14045ee8423d913ac01421d.tar.zst dexon-solidity-a34f2f1a316d6093c14045ee8423d913ac01421d.zip |
Support payable keyword for functions
Diffstat (limited to 'libsolidity/interface/InterfaceHandler.cpp')
-rw-r--r-- | libsolidity/interface/InterfaceHandler.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libsolidity/interface/InterfaceHandler.cpp b/libsolidity/interface/InterfaceHandler.cpp index d39f8285..017753fc 100644 --- a/libsolidity/interface/InterfaceHandler.cpp +++ b/libsolidity/interface/InterfaceHandler.cpp @@ -52,6 +52,7 @@ string InterfaceHandler::abiInterface(ContractDefinition const& _contractDef) method["type"] = "function"; method["name"] = it.second->declaration().name(); method["constant"] = it.second->isConstant(); + method["payable"] = it.second->isPayable(); method["inputs"] = populateParameters( externalFunctionType->parameterNames(), externalFunctionType->parameterTypeNames(_contractDef.isLibrary()) @@ -72,6 +73,7 @@ string InterfaceHandler::abiInterface(ContractDefinition const& _contractDef) externalFunction->parameterNames(), externalFunction->parameterTypeNames(_contractDef.isLibrary()) ); + method["payable"] = externalFunction->isPayable(); abi.append(method); } if (_contractDef.fallbackFunction()) |