EmurgoEthPrj
Driver Registration smart contract with Test Case using Mocha
Clone the Project.
Run commands 'trufle compile' and 'truffle test'
The smart contract must provide a set of functions that:
1.Let the driver register his profile ( Name - String, Contact - String, LiceceNo - String) 2.Let the owner of a profile update his details. 3.Get the list of driver and their details. 4.Check if the driver is already registered.
Test Cases
1.Register a driver with a name, contact and licence number. 2.A registered driver can update his own profile. 3.A driver cannot register again.