(_dna, _edition, _attributesList)
| 45 | |
| 46 | // add metadata for individual nft edition |
| 47 | const generateMetadata = (_dna, _edition, _attributesList) => { |
| 48 | let dateTime = Date.now(); |
| 49 | let tempMetadata = { |
| 50 | dna: _dna.join(""), |
| 51 | name: `#${_edition}`, |
| 52 | description: description, |
| 53 | image: `${baseImageUri}/${_edition}`, |
| 54 | edition: _edition, |
| 55 | date: dateTime, |
| 56 | attributes: _attributesList, |
| 57 | }; |
| 58 | return tempMetadata; |
| 59 | }; |
| 60 | |
| 61 | // prepare attributes for the given element to be used as metadata |
| 62 | const getAttributeForElement = (_element) => { |