I am trying to write a contract for renting cars . I have implemented the following addCar -> to add a new car to the lot rentCar -> trasfers te ownership of the car to the rentee,and creates a rent object .
I want to use erc 721 tokens ,to represest each car . How do I implement this ? For example should my mint function call the addCar function ? And I call the mint function from the UI ?