Update solidity.html.markdown

added qualifier payable to the function Info, hence without it's not compileable
This commit is contained in:
Aldaschwede 2019-08-06 17:29:19 +02:00 committed by GitHub
parent 2f0b904f6f
commit e7a2c6d888
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -483,7 +483,7 @@ for(uint x = 0; x < refundAddressList.length; x++) {
// A. Calling external contract
contract InfoFeed {
function info() returns (uint ret) { return 42; }
function info() payable returns (uint ret) { return 42; }
}
contract Consumer {