Skip to content

Example of ERC-721 contract

IDE

Remix can be used as an editor solidity.

Contract

The Meebits contract from Larvalabs was selected. Larvalabs was the company behind cryptopunks NFTs and in May 2021 released the Meebits project.

The contract is 679 lines of code using solidity 0.7.6 Contract in Remix IDE

Note: The contract has some specific code related to cryptopunks and minting. This is because cryptopunks owners would be able to mint a meebit free of cost (other meebits were sold using a dutch auction from 2.5ETH)

Code review of contract

I've done the following Code review as a github pull request in order to learn the contract.

In general, it's amazing how compact the contract actually is. Code review screenshot