nft-marketplace-smart-contract's Issues
i can't run the test with hardhat, can you help me ?
Hello i have a question, i clone this repository "master" to test in my localhost, all goes fine in the compile, but when i do :
npx hardhat test
, say this error :
C:\Users\pepap\Desktop\NFT-Marketplace-Smart-Contract-Live-4.1.0\test\sellNFTTest.js:5
const artifactDFYToken = "DFY";
^
SyntaxError: Identifier 'artifactDFYToken' has already been declared
at Object.compileFunction (node:vm:352:18)
at wrapSafe (node:internal/modules/cjs/loader:1033:15)
at Module._compile (node:internal/modules/cjs/loader:1069:27)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Module.require (node:internal/modules/cjs/loader:1005:19)
at require (node:internal/modules/cjs/helpers:102:18)
at C:\Users\pepap\Desktop\NFT-Marketplace-Smart-Contract-Live-4.1.0\node_modules\mocha\lib\mocha.js:414:36
at Array.forEach (<anonymous>)
at Mocha.loadFiles (C:\Users\pepap\Desktop\NFT-Marketplace-Smart-Contract-Live-4.1.0\node_modules\mocha\lib\mocha.js:411:14)
at Mocha.run (C:\Users\pepap\Desktop\NFT-Marketplace-Smart-Contract-Live-4.1.0\node_modules\mocha\lib\mocha.js:969:10)
at testFailures (C:\Users\pepap\Desktop\NFT-Marketplace-Smart-Contract-Live-4.1.0\node_modules\hardhat\src\builtin-tasks\test.ts:99:15)
at new Promise (<anonymous>)
at SimpleTaskDefinition.action (C:\Users\pepap\Desktop\NFT-Marketplace-Smart-Contract-Live-4.1.0\node_modules\hardhat\src\builtin-tasks\test.ts:98:34)
at Environment._runTaskDefinition (C:\Users\pepap\Desktop\NFT-Marketplace-Smart-Contract-Live-4.1.0\node_modules\hardhat\src\internal\core\runtime-environment.ts:219:14)
PS C:\Users\pepap\Desktop\NFT-Marketplace-Smart-Contract-Live-4.1.0>
and when i comment that line, the next error comes :
·············|··········|·············|·············|·············|·············|················
| Contract · Method · Min · Max · Avg · # calls · usd (avg) │
·------------|----------|-------------|-------------|-------------|-------------|---------------·
0 passing (17s)
6 failing
1) Deploy DFY Factory
"before all" hook in "Deploy DFY Factory":
HardhatError: HH700: Artifact for contract "DFY" not found. Did you mean "Hub"?
at Artifacts._handleWrongArtifactForContractName (node_modules\hardhat\src\internal\artifacts.ts:478:11)
at Artifacts._getArtifactPathFromFiles (node_modules\hardhat\src\internal\artifacts.ts:593:19)
at Artifacts._getArtifactPath (node_modules\hardhat\src\internal\artifacts.ts:275:17)
at Artifacts.readArtifact (node_modules\hardhat\src\internal\artifacts.ts:58:26)
at getContractFactory (node_modules\@nomiclabs\hardhat-ethers\src\internal\helpers.ts:99:22)
at Context.<anonymous> (test\AuctionNFT.test.js:58:33)
where i can get the BEP20 for test this Marketplace ?
Thanks for read ❤️
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.