-
Notifications
You must be signed in to change notification settings - Fork 3
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
safe_mint
and safe_transfer
should require _invokeNFTReceiver
to return true
#8
Comments
basically I mean the
|
What I tried to say on Discord is that ERC-721 doesn't throw in case the receiver doesn't implement the method. So therefore I use the bool to indicate whether the call was successful or not. However what I do notice is that with the changes today I removed prolongating the bool result up. So instead of require and throw, it should at least return the bool, so that the developer of a contract can decide whether to throw or not. |
let me rephrase the issue to be more clear. IMO an entrypoint called |
safe_mint
and safe_transfer
should require _invokeNFTReceiver
to return true
I agree with you, but it would mean that we break ERC-721 compatibility. |
can you elaborate on that one? I don't understand 😅 let's get first the discussion about the interface getting started in the AEX proposal and then digging deeper into implementation details |
You are right. It should throw if the call fails. I included this in the AEX proposal |
I guess you would want this entrypoint to throw and error and fail if the recipient / receiver doesn't implement this interface or returns false.
see:
ae-nft/contracts/NFT.aes
Line 165 in 05e4ef9
ae-nft/contracts/NFT.aes
Line 168 in 05e4ef9
The text was updated successfully, but these errors were encountered: