0 votes
1 view
in Blockchain by (12.8k 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.8k points)

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

Welcome to Intellipaat Community. Get your technical queries answered by top developers !


Categories

...