Timeline for How to send the ERC721 NFT token of existing smart contract to another wallet using my smart contract
Current License: CC BY-SA 4.0
11 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Sep 30, 2021 at 12:55 | comment | added | Majd TL | Yes and I see the comments Thanks for help, approve from web3(wallet) and transfer from smart contract worked. so as I said you need 2 transactions -> The first transaction will be called from outside the contract using your wallet how own the token to approve the token to the contract (you need to call the method "approve(<contract-address>, <tokenId>)". And then you can remove "nft.approve(deadAddress, _tokenId);" from your method and call it to transfer the token. (no idea if there are any security risks cause I don't have enough information) | |
Sep 30, 2021 at 12:44 | comment | added | Abe Yusei | Dear Majd, did you see this: ethereum.stackexchange.com/questions/98692/… | |
Sep 30, 2021 at 12:40 | comment | added | Majd TL | I'm very sorry, I can't help you. it is not that easy with solidity.. it is not coded that you can copy and run. what I can tell you is: you can't approve and transfer in the same function(same transaction) | |
Sep 30, 2021 at 12:35 | comment | added | Abe Yusei | Dear Majd, can you help me? | |
Sep 30, 2021 at 11:14 | comment | added | Abe Yusei | I minted that NFT in A smart contract and got it. currently, I got some idea. But to complete the idea, I have to transfer my NFT to another wallet using my smart contract. Can you help me? I think you are expert smart contract developer, but I am a beginner. So if you can help me, please share the code to complete my idea. | |
Sep 30, 2021 at 10:46 | comment | added | Majd TL | "I have some ERC721 NFTs in my wallet minted in A smart contract." ? who developed that smart contract and how you got the NFT? //// //// /////"I want to transfer that NFT to another wallet using my smart contract." ? why using your contract, and not just transfer the NFT using the original contract? | |
Sep 30, 2021 at 9:56 | comment | added | Abe Yusei | Dear Majd, I didn't understand what you say. so I hope that you send some code for me. | |
Sep 30, 2021 at 6:43 | comment | added | Majd TL | the msg.sender need to approve the token to the contract. and then your method need only to call transferfrom | |
Sep 30, 2021 at 6:42 | comment | added | Majd TL | you cant approve and transferFrom in the same transaction. In your method -> the first line will approve the deadAddress to transfer tokenId onbehalf your contract . The Second line is trying to transfer the token from msg.sender to deadAddress and is triggered by the contract which has no permission to do that | |
S Sep 30, 2021 at 3:23 | review | First questions | |||
Oct 3, 2021 at 21:10 | |||||
S Sep 30, 2021 at 3:23 | history | asked | Abe Yusei | CC BY-SA 4.0 |