How to Code a Crypto Collectible: ERC-721 NFT Tutorial (Ethereum)
Why Stack Overflow recommends it
Stack Overflow users cite it as the tutorial they were following when they hit Truffle, OpenZeppelin or Solidity version errors, and answerers refer to it when updating its code for newer library versions.
Recommended by 1 people across 1 different months, 2021 to 2022.
What it is
A nearly two-hour tutorial from Dapp University that walks through building an ERC-721 NFT smart contract in Solidity, using Truffle, Ganache and a small web front end. The example project is a colour-token collectible, and the presenter supplies the code on GitHub.
What people said
Recommends Arne Jascha · 2021-10 · Stack Overflow · on “totalsupply() is not a function openzeppelin contracts”
Below is a complete implementation of the smart contract. As you mentioned in the question, it uses newer versions than the tutorial [this video] : Solidity (0.8.0) Open Zeppelin (4.3.2) pragma solidity ^0.8.0; // Note that this is using a newer version than in import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; contract Color is ERC721, ERC721Enumerable { string[] public colors; mapping(string => bool) _colorExists; constructor() ERC721("Color", "COLOR") public { } function _beforeTokenTransfer(address from, address to, uint256 tokenId) internal override(ERC721, ERC721Enumerable) { super._beforeTokenTransfer(fro
Cites Burtininkas · 2021-08 · Stack Overflow · on “Error: Cannot find module 'react-bootstrap/lib/Breadcrumb'”
I am following this tutorial: [this video] at 34:55 I am trying to use "truffle test", but keep getting Error: Cannot find module 'react-bootstrap/lib/Breadcrumb' My code: const { should, assert } = require('chai') const { useReducer } = require('react') const { Item } = require('react-bootstrap/lib/Breadcrumb') const color = artifacts.require('./color.sol') require('Chair') useReducer(require('chai-as-promised')) should() contract ('color', (accounts) => { describe('deployment', async () => { It('deploys successfully', async () => { contract = await color.deployed() const address = contract.address console.log(address) assert.notEqual(address, '') }) }) }) I am using Virtual Studio Code Has anyo
Cites Simen Dumont · 2022-08 · Stack Overflow · on “Why is the 'truffle compile' command failing and how can this be resolved?”
I recently started learning Solidity via YouTube. I'm currently trying to code my first ERC-721 token. I'm following this video and got stuck at around minute 25: How to Code a Crypto Collectible: ERC-721 NFT Tutorial (Ethereum) [this video] At this minute he is trying to compile his project using truffle, at least that's what I understand. When I try to compile, I keep getting the following error message: C:\starter_kit>truffle compile Error parsing C:/starter_kit/src/contracts/ERC721.sol: ParsedContract.sol:295:42: ParserError: Expected ';' but got '{' (bool success, ) = recipient.call{value: amount}(""); Compilation failed. See above. Truffle v5.0.5 (core: 5.0.5) Node v18.7.0 The file to which