mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-08-20 05:21:26 +02:00
Update solidity.html.markdown
added qualifier payable to the function Info, hence without it's not compileable
This commit is contained in:
@@ -483,7 +483,7 @@ for(uint x = 0; x < refundAddressList.length; x++) {
|
|||||||
|
|
||||||
// A. Calling external contract
|
// A. Calling external contract
|
||||||
contract InfoFeed {
|
contract InfoFeed {
|
||||||
function info() returns (uint ret) { return 42; }
|
function info() payable returns (uint ret) { return 42; }
|
||||||
}
|
}
|
||||||
|
|
||||||
contract Consumer {
|
contract Consumer {
|
||||||
|
Reference in New Issue
Block a user