leaseOTB / lease-demo

0 stars 0 forks source link

Integrate IPFS data hash into Lease contract #9

Open zachdt opened 4 years ago

zachdt commented 4 years ago

How do we store Listing metadata? (images, street address, unit number, BIN, etc...) Using an IPFS tag built into the constructor of the Lease contract.

https://js.ipfs.io/

Create a public storage variable inside the Lease contract that contains this hash (only replaces _streetAddress). Remember we cannot reference IPFS data inside the contract logic.

zachdt commented 4 years ago

We also need an event to track creation of these hashes in the Lease Factory contract for indexing. I will write a separate issue for IPFS hash creation and assign it to myself.