The ERC721 TokenReceiver interface requires that supporting interfaces implement onERC721Received, to signal that the interface supports ERC721 tokens.
SafeTransferFrom and SafeMint prevent ERC 721 tokens from being sent to an address that does not support those tokens.
The receiving address must return these four bytes: "0x150b7a02", to show that the receiving contract implements IERC721Receiver.
You can read more about safeTransferFrom and safeMint in the OpenZeppelin documentation.
docs.openzeppe...
Негізгі бет ERC 721 TokenReceiver & onERC721Received: how SafeTransferFrom and SafeMint protect your NFTs
Пікірлер: 9