A simple smart contract written in solidity code for an inventory management system to explore and playaround with Ethereum blockchain
This is a smart contract in solodity program that I wrote to play around with ethereum blockchains
- You can take this code as it is and publish it to an ethreum blockchain and use it
- This is a sample code that demostrates some of the basic functionalities of an ethereum blockchain smart contract
- The individual who publishes the contract in the blockchain will become its owner
- Only the owner can manage the inventory. He can increase or decrease the inventory
- Anyone can use the contract to book a room as long as the inventory is available
- Everytime the booking is successful, they would get a unique confirmation number
- After the booking is successful, the inventory will decrease
- They can only view their booking and not someone else’s booking
- The owner can view any booking in the system by submitting their public address