- install ganache
- run ganache and click QUICKSTART
- verify ganache rcp server
ìn my case at: HTTP://127.0.0.1:7545
- check it on file
./truffle-config.js
(host and port) - run in console:
truffle compile
- run in console:
truffle test
struct Task {
uint id;
string title;
string description;
bool done;
uint crateAt;
}
taskcounter
uinttasks
Task
createTask()
voidgetTaskById()
[Task]modifyTitle()
voidmodifyDescription()
voidtoggleDone()
void
findIndexById()
uint