1
0
mirror of https://github.com/adambard/learnxinyminutes-docs.git synced 2025-08-19 04:52:13 +02:00

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

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 {