I have two problems.
First: Followed all the steps, but I’m getting the error: use random rarity common
C:\Users\guest1\Source\Repos\moralis-mutants-nft-engine\src\dna.js:42
Math.random() * layer.elementIdsForRarity[rarityForLayer].length
^
TypeError: Cannot read properties of undefined (reading ‘length’)
Tried everything I can think of. No idea why this is happening.
Second: I’ve seen this a lot on the forum, really frustrating, but can you PLEASE explain how to edit the rarity weights? I tried creating more rarities following the already established syntax and it’s not working.
Thank you