Skip to content

Limited use bug in permissioning #684

Open
@SlayerAnsh

Description

@SlayerAnsh

Describe the bug
Limited use in permissioning consumes two usage

Error Code
NA

To Reproduce
Steps to reproduce the behavior:

  1. Set limited use to 1 for mint in cw721
  2. Try to mint (It will error)
  3. Set limited use to 2 for any mint
  4. Try to mint (Success)
  5. Checking remaining usage returns 0 indicated 2 uses were consumed in 1 action

Expected behavior
Only 1 usage should be used

Screenshots
If applicable, add screenshots to help explain your problem.

Environment (please complete the following information):

  • Chain

Additional context
Here Limited use permission is consumed for one action. But later its also consumed in execute_mint. This is causing consumption of 2 uses and error if there is only 1 usage allowed

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions