unlock-protocol / unlock

Ʉnlock is a protocol for memberships built on a blockchain.
https://unlock-protocol.com
MIT License
845 stars 251 forks source link

fix(smart-contracts): wrong token id after a key was burnt #15071

Closed clemsos closed 1 week ago

clemsos commented 1 week ago

Description

This PR fixes a bug in token id assignation after burning a key. As the token id is based on the existing supply of keys and the burn function decrease that supply, the token id calculations should take into account the number of keys that have been burnt.

Issues

Fixes # Refs #

Checklist:

Release Note Draft Snippet