In this final project, you will modify the state of our Restaurant Review project. Currently, state holds description, title and a rating. Let's update our project to hold location as well.
Add a new string to our AccountState called location.
Add the same string(location) to instructions inside ReviewInstruction and also ReviewPayload.
In the unpack function, you should also unpack the new location string.
For both update and add functions, we have a new variable which should be stored in the account_data along with title, rating and description
Please include a comprehensive README.md that:
- Explain the purpose and functionalities of your contract.
- Offers a guide on how to deploy and interact with the contract.
You can access the sample README file here.
You can also modify the frontend code to include location string in queries and creating review.
Note: To qualify for graduation, submit your project as open source rather than a closed project. This is better for the open culture of web3 but also allows us to evaluate your project and reach out to you for further career opportunities. Thank you! 🔥