BuyMeaCoffee
πThe BuyMeacoffe
smart contract is written in Solidity and allows users to buy βοΈ coffee in exchange for a certain amount of Ether π°. The contract records the total number of coffees purchased, the available Ether balance and the owner's address. Users can buy coffee by sending a message and respecting a minimum cost. Upon purchase, the contract stores the coffee information in a data structure and transfers the corresponding amount to the contract owner. Once the purchase has been made, an event is issued to inform the participants. π
Last updated