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!

1
  • 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. Apr 18, 2019 at 15:13

1 Answer 1

1

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

2
  • 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, 2019 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.
    – natewelch_
    Apr 18, 2019 at 14:20

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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