Hey man
I want my smart contract to be approved to spend an NFT
But if the user approves another contract to spend his NFT, I lost my approval rights for that NFT
Is there a way I can approach this matter, allow the contract get approval rights, and if the user approves another contract, I still get my approval rights!
Sep 23, 2022, 3:09 PM
So you want to remove the inner mapping inside the approve system
Sep 23, 2022, 3:11 PM
I haven't seen the approve function and it's mapping system though
On BSC, One can list an NFT on multiple marketplaces
How do they manage to keep all approval rights on each
How do they manage to keep all approval rights on each
Sep 23, 2022, 3:13 PM
The marketplaces calls nft.setApprovalForAll(marketplace.address,true)
Sep 23, 2022, 3:16 PM
Using isApprovedForAll, the params, I put in the user's wallet address and marketplace address as operator but it returns false
And I still don't have access to those rights
Sep 23, 2022, 3:19 PM
It should be true when you approve the marketplace from your wallet
Sep 23, 2022, 3:22 PM
I am using Remix to test it
It looks right! @karola96
And here, my wallet address is set at owner and marketplace address is set at operator
Sep 23, 2022, 3:24 PM
It does not require a file saved to run the script, it will make a temp file and run it
Sep 23, 2022, 3:27 PM
@karola96
Sep 23, 2022, 3:27 PM
Send a screen of the setApprovalForAll
Sep 23, 2022, 3:28 PM
@karola96
Sep 23, 2022, 3:28 PM
depends on the marketplace if it follows a standard for royalities or a scheme
Sep 23, 2022, 3:50 PM