mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Include payable for the constructor in the ABI
This commit is contained in:
parent
ceeb8f4a2b
commit
60e9c901e9
@ -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())
|
||||
|
Loading…
Reference in New Issue
Block a user