joshma91 / avocado

3 stars 0 forks source link

Teacher Onboarding Page #2

Open kendricktan opened 6 years ago

kendricktan commented 6 years ago

The process for registering as a tutor

adrianmcli commented 6 years ago

(outdated, see below)

screen shot 2017-11-14 at 5 45 24 pm

joshma91 commented 6 years ago

image

adrianmcli commented 6 years ago
  1. Creating the person object.

    function initSelf(bool isTeacher, string name, string description, uint weiPerHour)

    For this screen, isTeacher = true.

  2. Setting tags on the person.

    function setPersonTags(address addr, bytes32[] ts)

ts[] can be obtained through helper function (not yet written). tags.map(fromAscii) where tags is the array of selected tags.

Look at tests for actual usage example.