Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve clarity of error messages in functions checking token ownership #3121

Conversation

MarcelCutts
Copy link

@MarcelCutts MarcelCutts commented Jan 19, 2022

Issue

Fixes #3120

As described in the issue, I have expanded the (hopefully complete set) of error messages in which the user is informed they have insufficient ownership or approval for an action on a token. The addition is essentially not owner -> not token owner to distinguish from contract ownership.

One additional change was made in an instance where an error message for transferring tokens did not begin with the term transfer caller, instead just caller. I added transfer for uniformity.

Tests have been updated to check against updated error messages.

PR Checklist

  • Tests
  • Documentation
  • Changelog entry

are-you-the-owner-cam-gigandet

@Amxx
Copy link
Collaborator

Amxx commented Mar 9, 2022

Replaced with #3254 (see issue for rational)

@Amxx Amxx closed this Mar 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improve clarity of error messages in functions checking token ownership
2 participants