Skip to content

Add unit tests for isValidSlpTxn #7

@jcramer

Description

@jcramer

This convenience method provides extra protection to the user by detecting and preventing some burn scenarios. Unit tests should be implemented in order to cover all of the scenarios where tokens could be accidentally burned.

The tests should include:

  • Does not allow token burns for any non-SLP transactions (implemented)
  • Does not allow burns for tokens of the same token ID (implemented)
  • Does not allow burns for tokens of other token IDs (not implemented)
  • Does not allow excessive burns for NFT1 parent when creating NFT1 child (not implemented)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions