Zilliqa / ZRC

Zilliqa Reference Contracts
MIT License
40 stars 57 forks source link

fix(zrc-1): token_id bug #73

Closed snowsledge closed 3 years ago

snowsledge commented 3 years ago

token_id count is bugged as it takes reference from total_supply. If token_id = 1 is Burned while total_supply = 2. The Mint procedure will be broken and unusable. Solution is to add an additional field token_id_count that does not decrease, once a token_id is used, it will not be able to be used ever again.