1

if starting from the code of an erc721 token, I add fields beside the name, symbol and URI, is it still a token that respects the standard?

Add in the contract, not in the JSON file.

The most general question is actually: what is the standard?

I added a field to this code, declaring the setters and adding it to the interface, it works, now I still have an erc721 token or not?

Thanks!

  • Thank you for the question. It will be helpful if you can paste the resulting code here that you are using so that the next person may see it. – William Entriken Apr 18 at 15:13
1

As long as you don't modify the functions, events and member variables of the standard, you are good to go.

  • 1
    If I don't change the default functions (transfer, approval, etc.), but add new ones? What do you mean by Members? – Chaos Apr 18 at 9:34
  • 1
    Yes, you can add new functions. The standard defines the function it does have, it doesn't define the functions it can't have. – flygoing Apr 18 at 14:20

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.