BRC-721: NFTs
Write a BRC-721 smart contract
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol";
contract CryptoWizards is ERC721URIStorage {
constructor() ERC721("CryptoWizards", "WIZ") {}
function safeMint(address to, uint256 tokenId, string memory uri) public {
_safeMint(to, tokenId);
_setTokenURI(tokenId, uri);
}
}Compile the contracts
Deploy the contracts
Interact with the contracts
Last updated