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

Block add custom collectible when user is not the owner #359

Merged
merged 5 commits into from
Feb 4, 2019

Conversation

estebanmino
Copy link
Contributor

Description

This PR blocks users of adding collectibles that they don't own.

invalid

Needs better error message formatting.

Checklist

  • There is a related GitHub issue
  • Tests are included if applicable
  • Any added code is fully documented

Issue

Resolves #354

Copy link
Contributor

@brunobar79 brunobar79 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

locales/en.json Outdated
@@ -127,7 +127,9 @@
"collectible_token_id": "ID",
"address_must_be_valid": "Collectible address must be a valid address.",
"address_cant_be_empty": "Collectible address can't be empty.",
"token_id_cant_be_empty": "Collectible identifier can't be empty."
"token_id_cant_be_empty": "Collectible identifier can't be empty.",
"ownership_error_title": "Invalid addition",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd put some generic thing like, "Ooops, something happened." the word addition sounds like a math operation.

@estebanmino estebanmino merged commit 4e3c417 into master Feb 4, 2019
@estebanmino estebanmino deleted the custom-collectible-ownership branch February 4, 2019 19:57
rickycodes pushed a commit that referenced this pull request Jan 31, 2022
* block add custom collectible when user not owner

* test

* handle contract errors

* change locale
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.

2 participants