Questions tagged [erc-721]

Relating to ERC-721, the standard for Non-Fungible Tokens (also known as Deeds)

Filter by
Sorted by
Tagged with
3
votes
1answer
816 views

Inheritance of constructor [duplicate]

Why does warning appear with inheritance of constructor? contract MyToken is ERC721Token{ function MyToken(string _name, string _symbol) ERC721Token(_name, _symbol) public { } The content of the ...
3
votes
1answer
662 views

What's the point of ERC721Receiver.sol and ERC721Holder.sol in OpenZeppelin's implementation?

I'm studying OpenZeppelin's ERC721 token implementation and I'm having a hard time making sense of ERC721Receiver.sol and ERC721Holder.sol and how they relate to eachother. In the file ...
2
votes
2answers
912 views

Proper way to implement “buyable” ERC721 tokens

I have a contract that implements the ERC721 interface, and I want to allow token owners to set their tokens as "buyable", so that any other address can buy their token without any action on the part ...
3
votes
0answers
120 views

What Are Good Specific Reasons The onERC721Received Function Returns A Magic Value?

The ERC721 standard says the following: The onERC721Received function specifically works around old deployed contracts which may inadvertently return 1 (true) in certain circumstances even if they ...
2
votes
1answer
24 views

Confusion regarding total number of ERC-721 Tokens

I have two questions: 1) I want to retrieve the list of all ERC-721 tokens. The main block explorer for Ethereum which is Etherscan shows 2,883 ERC-721 tokens on its website https://etherscan.io/...
1
vote
3answers
340 views

ERC721 - Create 1000 tokens in one function call

I have implemented a contract where a set of ERC721 tokens should be generated with a function call in private net. Code as follows : function mint( address _owner, uint256[] _id ) ...
1
vote
1answer
36 views

Can't wrap my head around a mapping of mappings

I'm trying to fully comprehend what is going on in a standard ERC721 token. But this statement is really tripping me up: // Mapping from owner to operator approvals mapping (address => mapping (...
1
vote
1answer
60 views

ERC721Token super._mint calls addTokenTo from the top level implementation

Based on Shawn's answer, super._mint calls addTokenTo from the top level implementation (ERC721Token). How does this work? super._mint calls _mint from ERC721BasicToken reads line addTokenTo ...
1
vote
1answer
104 views

ERC721 how does tokenOfOwnerByIndex() list tokens owned by a user?

Per eip-721, there's an optional "enumeration extension". So what I did was I called balanceOf to get the number of tokens owned by the account and called tokenOfOwnerByIndex in a loop to get each ...
0
votes
1answer
42 views

Is there a performance penalty towards creating the maximum number of tokens with ERC-20 etc?

I saw this link: Max possible ERC20 Tokens allowed with 18 decimals? Is there a performance penalty for creating so many tokens? Obviously the number of storage capacity needed for mining will be ...