Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Blockchain by (12.7k points)

Could we add payble modifier to transfer function while implementing erc721 smart contract? I have made a non-fungible digital asset and wants to add logic to but that asset.

1 Answer

0 votes
by (29.5k points)
edited by

The final version of the ERC-721 expects payable keyword on functions safeTransferFrom, transferFrom and approve.I'd recommend you check the complete reference implementation of the ERC-721 non-fungible token standard for the Ethereum blockchain github.com/0xcert/ethereum-erc721 for details. You can also use erc721validator.org to check if your smart contract is valid

Know more about Blockchain in detail. Enroll in IBM Blockchain Certification now to take that first step.

Browse Categories

...