Closed lyulka closed 8 months ago
We may also want to add an (optional?) set of view methods for iterating through all tokens in a collection.
@dtlkelvin I made the following changes to the PRFC 2 specification:
We noted several oddities in the ERC 721 specification:
Although the aforementioned features in ERC 721 are odd, we decided to bring PRFC 2 as close as possible to ERC 721 to maximise compatibility and minimise surprises for implementors that are already familiar with ERC 721. This entails the following changes:
operator
function with is_operator
.@dtlkelvin @manngayin612 I pushed the changes we agreed to in today's design meeting. Please review the changes again and comment here if you have any questions or doubts.
The PRFC 2 specification in this branch currently specifies that:
However, it allows an account to be set as both the operator of an owner account and the spender of any of the tokens owned by the owner account.
Perhaps we should simplify the specification as well as make this more consistent by allowing an owner to be set as its own operator and an owner to be set as a spender of a token it currently owns. This change should be harmless.