Skip to content

Use different errors for different checks #146

@olehrdk

Description

@olehrdk

First of all, thank you for your work!

Description

Error in validate_collection_permissions and validate_asset_permissions is very generic (InvalidAuthority) here.

Problem

It makes it hard to debug or display an error to end-user.

For example:
When using external plugin for transfer lifecycle event and it gets rejected - InvalidAuthority 0x9 error will be thrown, which doesn't really makes sense since NFT authority was provided correctly.

Proposal

Use different errors for different checks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions