distributed_exchange_truffle_class_3
distributed_exchange_truffle_class_3 copied to clipboard
This is a fully distributed exchange with truffle and MetaMask on the Rinkeby-Testnet
while i am running npm run dev ERROR in ./node_modules/bootstrap-loader/lib/bootstrap.scripts.loader.js?{"bootstrapVersion":3,"useCustomIconFontPath":false,"extractStyles":false,"styleLoaders":["style","css","sass"],"styles":["mixins","normalize","print","glyphicons","scaffolding","type","code","grid","tables","forms","buttons","component-animations","dropdowns","button-groups","input-groups","navs","navbar","breadcrumbs","pagination","pager","labels","badges","jumbotron","thumbnails","alerts","progress-bars","media","list-group","panels","wells","responsive-embed","close","modals","tooltip","popovers","carousel","utilities","responsive-utilities"],"scripts":["transition","alert","button","carousel","collapse","dropdown","modal","tooltip","popover","scrollspy","tab","affix"],"configFilePath":"/home/suyash644/Documents/ethexch/ethexchange/exch/node_modules/bootstrap-loader/.bootstraprc-3-default","bootstrapPath":"/home/suyash644/Documents/ethexch/ethexchange/exch/node_modules/bootstrap-sass","bootstrapRelPath":"../bootstrap-sass"}!./node_modules/bootstrap-loader/no-op.js Module not found: Error: Can't resolve 'imports-loader' in '/home/suyash644/Documents/ethexch/ethexchange/exch' @ ./node_modules/bootstrap-loader/lib/bootstrap.scripts.loader.js?{"bootstrapVersion":3,"useCustomIconFontPath":false,"extractStyles":false,"styleLoaders":["style","css","sass"],"styles":["mixins","normalize","print","glyphicons","scaffolding","type","code","grid","tables","forms","buttons","component-animations","dropdowns","button-groups","input-groups","navs","navbar","breadcrumbs","pagination","pager","labels","badges","jumbotron","thumbnails","alerts","progress-bars","media","list-group","panels","wells","responsive-embed","close","modals","tooltip","popovers","carousel","utilities","responsive-utilities"],"scripts":["transition","alert","button","carousel","collapse","dropdown","modal","tooltip","popover","scrollspy","tab","affix"],"configFilePath":"/home/suyash644/Documents/ethexch/ethexchange/exch/node_modules/bootstrap-loader/.bootstraprc-3-default","bootstrapPath":"/home/suyash644/Documents/ethexch/ethexchange/exch/node_modules/bootstrap-sass","bootstrapRelPath":"../bootstrap-sass"}!./node_modules/bootstrap-loader/no-op.js 12:0-64 @ ./node_modules/bootstrap-loader/lib/bootstrap.loader.js!./node_modules/bootstrap-loader/no-op.js @ ./node_modules/bootstrap-loader/loader.js @ ./app/javascripts/app.js @ multi...
``` ////////////////////////////////// // DEPOSIT AND WITHDRAWAL TOKEN // ////////////////////////////////// function depositToken(string symbolName, uint amount) { uint8 symbolNameIndex = getSymbolIndexOrThrow(symbolName); require(tokens[symbolNameIndex].tokenContract != address(0)); ERC20Interface token = ERC20Interface(tokens[symbolNameIndex].tokenContract); require(token.transferFrom(msg.sender, address(this), amount) ==...