You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
olehrdk
changed the title
Use different errors for different checks
Use different errors for different checks (Feature request)
Jun 14, 2024
olehrdk
changed the title
Use different errors for different checks (Feature request)
Use different errors for different checks
Jun 14, 2024
First of all, thank you for your work!
Description
Error in
validate_collection_permissions
andvalidate_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
The text was updated successfully, but these errors were encountered: