Skip to content
This repository has been archived by the owner on Oct 2, 2023. It is now read-only.

using proper errors #123

Merged
merged 68 commits into from
Aug 10, 2023
Merged

using proper errors #123

merged 68 commits into from
Aug 10, 2023

Conversation

asiniscalchi
Copy link
Member

No description provided.

@asiniscalchi asiniscalchi marked this pull request as ready for review August 10, 2023 10:27
@asiniscalchi asiniscalchi linked an issue Aug 10, 2023 that may be closed by this pull request
match Self::do_create_collection(owner) {
Ok(collection_id) => Ok(collection_id),
Err(err) => match err {
Error::CollectionAlreadyExists => {
Copy link
Contributor

Choose a reason for hiding this comment

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

As far as I see, there is no possibility to get that error, since collectionId looks for the next available number. Indeed, the code for do_create_collection does never throw a CollectionAlreadyExists error, right?

Copy link
Member Author

Choose a reason for hiding this comment

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

sgtm

@asiniscalchi asiniscalchi requested review from tonimateos and a user August 10, 2023 14:50
@asiniscalchi asiniscalchi merged commit f10d018 into dev Aug 10, 2023
@asiniscalchi asiniscalchi deleted the feature/using_proper_errors branch August 10, 2023 15:37
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ERC721.TokenURI for a created collection
2 participants