devpavan04 / cryptoboys-nft-marketplace Goto Github PK
View Code? Open in Web Editor NEWAn NFT marketplace where users can mint ERC721 implemented Crypto Boy NFTs ๐ผ๏ธ
Home Page: https://devpavan04.github.io/cryptoboys-nft-marketplace/
An NFT marketplace where users can mint ERC721 implemented Crypto Boy NFTs ๐ผ๏ธ
Home Page: https://devpavan04.github.io/cryptoboys-nft-marketplace/
Unhandled Rejection (TypeError): Cannot read properties of null (reading 'toNumber')
Dear devpavan
I followed all the instructions successfully but the following error shows:
CRYPTO BOYS CONTRACT NOT DEPLOYED TO THIS NETWORK.
Connect Metamask to Kovan Testnet Or Localhost 7545 running a custom RPC like Ganache.
Here is the truffle test:
Compiling your contracts...
===========================
โ Fetching solc version list from solc-bin. Attempt #1
> Compiling ./src/contracts/CryptoBoys.sol
> Compiling ./src/contracts/ERC721.sol
> Compiling ./src/contracts/Migrations.sol
> Artifacts written to /var/folders/bw/3p5s80wx4j9317z2v18mf3d00000gn/T/test--35348-0C4qIofrLlt0
> Compiled successfully using:
- solc: 0.7.6+commit.7338295f.Emscripten.clang
Contract: Crypto Boys
Deployment
โ contract has an address
โ has a name (224ms)
โ has a symbol
application features
โ allows users to mint ERC721 token (2547ms)
โ returns address of the token's owner
โ returns metadata of a token
โ returns total number of tokens minted so far
โ returns total number of tokens owned by an address
โ allows users to buy token for specified ethers (965ms)
โ allows users to change token price (628ms)
โ allows users to toggle between setting the token for sale or not for sale (391ms)
11 passing (6s)
You should upgrade to Sepolia network
Thanks for sharing such a great NFT market implementation! However, I found a hidden but critical issue, that is when the second NFT to be mint, the MetaMask always claims a transaction error.
I tried to debug the contract but sadly I failed to find the real cause :< so I decide to report the issue to you!
Best!
contracts/CryptoBoys.sol:8:24: DeclarationError: Identifier not found or not unique.
contract CryptoBoys is ERC721 {
when deploy to Remix
TypeError: Cannot destructure property 'contractName' of 'contract' as it is undefined.
at forContract (/usr/local/lib/node_modules/truffle/build/webpack:/packages/compile-common/dist/src/shims/NewToLegacy.js:5:13)
at Array.map ()
at Object.save (/usr/local/lib/node_modules/truffle/build/webpack:/packages/workflow-compile/index.js:123:1)
at Object.module.exports [as run] (/usr/local/lib/node_modules/truffle/build/webpack:/packages/core/lib/commands/compile/run.js:38:1)
at Command.run (/usr/local/lib/node_modules/truffle/build/webpack:/packages/core/lib/command.js:189:1)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.