TodoList
contract TodoList
This is a todolist with storage on the blockchain, much more efficent to use a database., A sample to do list for my Vue Dapp.
Source: contracts/TodoList.sol
Reference
Modifiers
onlyOwner
modifier onlyOwner(address _owner)
- Parameters:
_owner
- address
Functions
addTodo
function addTodo(bytes32 _content) public
Add a todo to the list.
- Parameters:
_content
- list item to append.
markTodoAsCompleted
function markTodoAsCompleted(uint256 _todoId) public
Marking a todoitem as completed.
- Modifiers:
- onlyOwner
- Parameters:
_todoId
- todolist item ID Mark a todo as completed