Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 27263

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

2 votes
1 answer
512 views

Is there a reason why minting is excluded in erc721 interface?

So the EIP-721 standard says, Creating of NFTs ("minting") and destruction NFTs ("burning") is not included in the specification. Your contract may implement these by other means. interface ERC721 / …
bbusdriver's user avatar
  • 1,164
3 votes
1 answer
1k views

ERC721TokenReceiver, assuming that transfer function exists?

When trying to find out if a contract implemented onERC721Received from safeTransferFrom function, are we just safely assuming the contract has all the erc721 related functionalities? such as transfer …
bbusdriver's user avatar
  • 1,164
1 vote
2 answers
7k views

others accessing setApprovalForAll ERC721

While I was skimming through open zeppelin's ERC721BasicToken.sol I came across a problem. When setting the approval of a given operator function setApprovalForAll(address _to, bool _approved) pub …
bbusdriver's user avatar
  • 1,164
9 votes
1 answer
5k views

What is the bytes data param in safeTransferFrom?

In ERC721 and ERC1155, safeTransferFrom has bytes data parameter. function safeTransferFrom(address _from, address _to, uint256 _tokenId, bytes data) public; how do I send data (is it in hex format?) …
bbusdriver's user avatar
  • 1,164
1 vote
1 answer
760 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 …
bbusdriver's user avatar
  • 1,164
1 vote
1 answer
175 views

What does mutability guarantees mean in erc721

Some functions from ERC-721 interface contain payable modifiers. function transferFrom(address _from, address _to, uint256 _tokenId) external payable; I was wondering why it is payable and found fr …
bbusdriver's user avatar
  • 1,164
2 votes
2 answers
1k views

ERC721 exchange logic

I'm trying to allow NFT holders to sell their tokens by listing prices (ETH) and allow others to buy those listed tokens. I used openzeppelin and succesfully implemented and tested my token creation. …
bbusdriver's user avatar
  • 1,164
0 votes
1 answer
31 views

tokenId generated from left shift operator vs. increment

tokenId = (nonce << 128); // i.e. 340282366920938463463374607431768211457, 680564733841876926926749214863536422913 vs. tokenId = counter.increment(); // i.e. 1, 2, 3 incrementally i see some projec …
bbusdriver's user avatar
  • 1,164
1 vote
1 answer
789 views

Timestamp is lower than or equal to previous block

I have a function where a specific time should be passed to run it. function placeBid(...) { require(auction.startedAt <= block.timestamp, "not started yet"); ... } say startedAt is a unix value …
bbusdriver's user avatar
  • 1,164
1 vote
1 answer
9k 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 own …
bbusdriver's user avatar
  • 1,164