Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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);
- constructor() public {
- owner = msg.sender;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement