stellar / soroban-examples

Example Soroban Contracts
Apache License 2.0
57 stars 60 forks source link

Fix mint-lock context pinning of limit #297

Closed leighmcculloch closed 7 months ago

leighmcculloch commented 7 months ago

What

Change the scope of the data stored for a minter so that the scope includes the token the minting limit applies to.

Why

When the admin sets a minting limit it is not associated with a token, meaning that the minter can consume the limit via any other contract they write. The limit is intended to be tied to the minting of a single token.

Close #295