Hello, I wanted to deposit the creator earnings to nft collection smart contract address.
Is it safe to add this code to Smart Contract Collection?
receive() external payable {}
Or should I just enter address in NFT marketplace like opensea?
Hello, I wanted to deposit the creator earnings to nft collection smart contract address.
Is it safe to add this code to Smart Contract Collection?
receive() external payable {}
Or should I just enter address in NFT marketplace like opensea?
If you add this function to a smart contract, then you should also add to that contract a function which allows you (and only you) to withdraw the received funds.
So this does not create a problem in the code of this collection?
Of course it does, exactly as explained in the answer above.