flow-nft icon indicating copy to clipboard operation
flow-nft copied to clipboard

CONTRACT: Create NFT Forwarding Contract

Open joshuahannan opened this issue 5 years ago • 3 comments

Issue To Be Solved

Some users may want to forward the NFTs that are sent to them to a different account's collection. Make a contract that defines a resource type that implements the Receiver interface from NonFungibleToken and deposits the NFT into another account.

This is similar to the TokenForwarding contract from the flow-ft repo

(Optional): Suggest A Solution

  • Write the contract
  • Test it with the transfer_nft.cdc transaction

joshuahannan avatar May 08 '20 19:05 joshuahannan

I know this is old but I'd like to take a stab at it if it's still relevant. @joshuahannan do you think this would still be helpful to have?

phouse512 avatar May 09 '21 22:05 phouse512

@phouse512 we don't have a critical need for it, but it is always helpful to have more good smart contract examples of different use cases! It would be awesome if you could take a crack at it. I can help answer questions if needed! :)

joshuahannan avatar May 10 '21 15:05 joshuahannan

thanks @joshuahannan, I just published a PR for this - let me know if that's what you were thinking or if I missed what you were aiming for

phouse512 avatar May 15 '21 22:05 phouse512