thirdweb-example / dex-contracts Goto Github PK
View Code? Open in Web Editor NEWDEX contracts to accompany the DEX app
DEX contracts to accompany the DEX app
$ npx thirdweb build
npx thirdweb build
npm ERR! Class extends value undefined is not a constructor or null
log files
verbose argv "exec" "--" "thirdweb" "build"
23 timing npm:load:setTitle Completed in 1ms
24 timing npm:load:display Completed in 0ms
25 verbose logfile logs-max:10 dir:C:\Users\xxxx\AppData\Local\npm-cache\_logs\2024-05-27T06_55_06_826Z-
26 verbose logfile C:\Users\xxxx\AppData\Local\npm-cache\_logs\2024-05-27T06_55_06_826Z-debug-0.log
27 timing npm:load:logFile Completed in 4ms
28 timing npm:load:timers Completed in 0ms
29 timing npm:load:configScope Completed in 0ms
30 timing npm:load Completed in 71ms
31 verbose stack TypeError: Class extends value undefined is not a constructor or null
31 verbose stack at Object.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\minipass-collect\index.js:4:23)
31 verbose stack at Module._compile (node:internal/modules/cjs/loader:1358:14)
31 verbose stack at Module._extensions..js (node:internal/modules/cjs/loader:1416:10)
31 verbose stack at Module.load (node:internal/modules/cjs/loader:1208:32)
31 verbose stack at Module._load (node:internal/modules/cjs/loader:1024:12)
31 verbose stack at Module.require (node:internal/modules/cjs/loader:1233:19)
31 verbose stack at require (node:internal/modules/helpers:179:18)
31 verbose stack at Object.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\cacache\lib\get.js:3:17)
31 verbose stack at Module._compile (node:internal/modules/cjs/loader:1358:14)
31 verbose stack at Module._extensions..js (node:internal/modules/cjs/loader:1416:10)
32 verbose cwd C:\Users\xxxx\Documents\github\dex-contracts
Here are the fixes according to the YT video, managed to compile and deploy successfully to TW..
constructor (address _token, address _defaultAdmin, string memory _name,string memory _symbol )
ERC20Base(_defaultAdmin, _name, _symbol) {
token = _token;
}
Will rebasing token in this dex pool rebase?
TypeError: Wrong argument count for modifier invocation: 2 arguments given but expected 3.
--> contracts/DEX.sol:9:34:
|
9 | constructor (address _token) ERC20Base(ERC20(_token).name(), ERC20(_token).symbol()) {
|
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.