A smart contract for a Todo App on the Ethereum blockchain.
TaskContract is a smart contract for a Todo App on the Ethereum blockchain. It allows users to add tasks and delete tasks. It also allows users to view their own tasks.
TaskContract has the following functions:
addTask(string memory taskText, bool isDeleted)
- adds a new task to the contract.getMyTasks()
- returns an array of tasks that belong to the user.deleteTasks(uint256 taskId, bool isDeleted)
- deletes a task from the contract.
TaskContract emits the following events:
AddTask(address recipient, uint256 taskId)
- emitted when a task is added.DeleteTask(uint256 taskId, bool isDeleted)
- emitted when a task is deleted.