So yeah i want a simple smart contract that can receive an NFT and also send it.
What do i need to add to the smart contract? Probably some interface, but which? Thanks!
So yeah i want a simple smart contract that can receive an NFT and also send it.
What do i need to add to the smart contract? Probably some interface, but which? Thanks!
You are correct. Your contract needs to implement the interface IERC721Receiver. The method onERC721Received is called by the NFT contract after safeTransferFrom