pragma solidity ^0.5.0; contract SolidityCafe { // owner of the contract address payable owner; // description of items on the menu struct ItemDescr { string name; uint price; string ingredients; bool hot; } // menu ItemDescr[] public menu; // list of loyal customers with their points mapping(address => uint) loyalCustomers; // event emitted when payment is done event LogPayment(address _address, uint amount); }
0.5.0