app icon indicating copy to clipboard operation
app copied to clipboard

Generate a random Drip List ID when creating a new Drip List

Open jtourkos opened this issue 1 year ago • 1 comments

There is no obvious reason to pre-calculate the Drip List ID based on the account's total minted count (to validate this before making any changes).

Also, after discussions, we came to the conclusion that this is hard to calculate correctly, if at all. Current logic has some buggy, (very)edge, cases that could result in a "token already minted" error.

The idea now is to generate a random ID and validate it on-chain by calling the NFTDriver.isSaltUsed before using it.

Relevant file: DripsListService.ts

jtourkos avatar Feb 20 '24 15:02 jtourkos