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

Add contract address validation #414

Merged

Conversation

Gudahtt
Copy link
Member

@Gudahtt Gudahtt commented Mar 19, 2021

Contract address validation has been added to the getCollectibleTokenURI method. This validation was already present in the one place where getCollectibleTokenURI is called, so overall this is basically a refactor with no functional changes, except that the API of each of these controllers has changed. It's a non-functional change from mobile's perspective though.

It might seem more appropriate to throw an error if the address isn't an NFT, rather than returning an empty string. But this is the pre- existing behaviour, so it has been preserved for now.

@Gudahtt Gudahtt requested a review from a team as a code owner March 19, 2021 15:09
@Gudahtt Gudahtt force-pushed the add-NFT-contract-address-validation-to-get-URI-method branch 2 times, most recently from d6b084e to a5b55e0 Compare March 19, 2021 20:11
Contract address validation has been added to the
`getCollectibleTokenURI` method. This validation was already present in
the one place where `getCollectibleTokenURI` is called, so overall this
is basically a refactor with no functional changes, except that the API
of each of these controllers has changed. It's a non-functional change
from mobile's perspective though.

It might seem more appropriate to throw an error if the address isn't
an NFT, rather than returning an empty string. But this is the pre-
existing behaviour, so it has been preserved for now.
@Gudahtt Gudahtt force-pushed the add-NFT-contract-address-validation-to-get-URI-method branch from b1c3427 to 09629fa Compare March 19, 2021 22:10
Copy link
Contributor

@ryanml ryanml left a comment

Choose a reason for hiding this comment

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

++

@Gudahtt Gudahtt merged commit 8bf3dbb into develop Mar 20, 2021
@Gudahtt Gudahtt deleted the add-NFT-contract-address-validation-to-get-URI-method branch March 20, 2021 00:54
MajorLift pushed a commit that referenced this pull request Oct 11, 2023
Contract address validation has been added to the
`getCollectibleTokenURI` method. This validation was already present in
the one place where `getCollectibleTokenURI` is called, so overall this
is basically a refactor with no functional changes, except that the API
of each of these controllers has changed. It's a non-functional change
from mobile's perspective though.

It might seem more appropriate to throw an error if the address isn't
an NFT, rather than returning an empty string. But this is the pre-
existing behaviour, so it has been preserved for now.
MajorLift pushed a commit that referenced this pull request Oct 11, 2023
Contract address validation has been added to the
`getCollectibleTokenURI` method. This validation was already present in
the one place where `getCollectibleTokenURI` is called, so overall this
is basically a refactor with no functional changes, except that the API
of each of these controllers has changed. It's a non-functional change
from mobile's perspective though.

It might seem more appropriate to throw an error if the address isn't
an NFT, rather than returning an empty string. But this is the pre-
existing behaviour, so it has been preserved for now.
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