Hey everyone, I was running through the Solidity tutorials provided at https://cryptomarketpool.com/getting-started-with-solidity/ . Was doing the practice smart contract deployment on Remix IDE and improved one of those sample smart contracts (https://cryptomarketpool.com/hotel-and-vending-solidity-smart-contract/).
Introduced a tenant address, so that vacating a room becomes possible
Only the owner or current tenat can vacate the room
The hotel room rent can be adjusted and is not a static value
Only the owner can change the rent
If excess funds are transferred to the contract, the surplus is returned to the msg.sender
Please have a look, and let me know your thoughts. I am not new to programming, but definitely new to web3 and solidity, I am here to learn.