-
Notifications
You must be signed in to change notification settings - Fork 170
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
[standard v2] Remove INFT
interface from NonFungibleToken
#206
Comments
I'm hesitant to make any more breaking changes to the standard because we said that it was finalized. Is this something we really need to do? |
So the problem for the migrations is that developers now have two options to go with (could either use I opened this PR: onflow/cadence#3193, to add a restriction to the contract update validation, such that it will enforce the developers to use the new Would that going to be OK? Or do you think we should still let them use the old one? |
Just to be clear, as an alternative solution, we can let people use both flow-nft/contracts/ExampleNFT.cdc Line 39 in 4c0c684
to flow-nft/contracts/ExampleNFT.cdc Line 25 in 3a595a3
will not be supported. They would have to keep using the |
Even though this change is not required, it would be great to still get it in. It would improve the situation for existing code, which currently may and will have to keep using The proposed change, the removal of the |
It isn't about whether or not I agree with the change, it is that we told everyone that the standards were finalized and that we wouldn't be making any more breaking changes to them and I'm trying to figure out if it is okay to go back on that. |
After thinking a little bit, I believe it is probably okay. I made the change in supun's branch. Nobody has staged any updates yet, right? |
I guess this issue can be closed now? |
Added in #205 |
Issue To Be Solved
I guess the reason for keeping that was to make the
NonFungibleToken
backward compatible, and to make the life easier for the migrations.Now that the migrations and contract update validator support changing the type from
NonFungibleToken.INFT
toNonFungibleToken.NFT
(added in onflow/flow-go#5564), we could remove the oldINFT
interface, and ask developers to start using the newNFT
.In-fact now it is also unsafe from migrations point of view, to have both the
INFT
and theNFT
around, because it could theoretically cause "type confusion" for certain migrated values. So removing theINFT
interface, and requiring people to start usingNFT
instead seems the best option.The text was updated successfully, but these errors were encountered: