Mick00 / carfax-on-blockchain

Typescript version of Scaffold-Eth 🏗
MIT License
0 stars 0 forks source link

Upload a report #29

Closed Mick00 closed 2 years ago

Mick00 commented 2 years ago

The registrar front end will need a form for contributor to upload reports on cars they are doing maintenance.

The form will require to insert the serial number and a pdf file. The pdf file will be the report and will get uploaded to IPFS.

The report gets registered on the smart contract by calling the create method on the Reports Smart Contract. The method requires the car id which you can query using the serial number and the serialNumberToCar method on the car contract. The second parameters is the hash of the pdf file uploaded to IPFS