cryptotwenty / c20-withdraw-dapp

Front end application that allows easy withdrawal using web3
37 stars 14 forks source link

Production website and local instances failing #16

Open fjcaetano opened 3 years ago

fjcaetano commented 3 years ago

The production website (https://crypto20.com/en/portal/withdraw/) is failing with an infinite loading screen. I've tried cloning the project and running it locally, but it's also failing with the following error.

WITHDRAWAL IS PROBABLY NOT WORKING

×
Unhandled Rejection (Error): CONNECTION ERROR: Couldn't connect to node http://localhost:8545.
▼ 4 stack frames were expanded.
InvalidConnection
node_modules/web3/lib/web3/errors.js:31
HttpProvider../node_modules/web3/lib/web3/httpprovider.js.HttpProvider.send
node_modules/web3/lib/web3/httpprovider.js:94
RequestManager../node_modules/web3/lib/web3/requestmanager.js.RequestManager.send
node_modules/web3/lib/web3/requestmanager.js:58
get [as network]
node_modules/web3/lib/web3/property.js:107
▲ 4 stack frames were expanded.
(anonymous function)
http://localhost:3000/static/js/bundle.js:196965:64
  196962 | web3RPC.eth.getAccounts(function (error, accounts) {
  196963 |   result.accounts = accounts;
  196964 | 
> 196965 |   var c20ContractAddress = parseInt(web3.version.network, 10) === 1 ? '0x26e75307fc0c021472feb8f727839531f112f317' : '0x2f412497f4ec98b22c7e886af252321b01e0447b';
         |                                                  ^  196966 | 
  196967 |   return regulator.at(c20ContractAddress).then(function (c20Instance) {
  196968 |     result.c20Instance = c20Instance;
View source
▼ 9 stack frames were expanded.
(anonymous function)
node_modules/web3/lib/web3/property.js:119
(anonymous function)
node_modules/web3/lib/web3/requestmanager.js:82
XMLHttpRequest.request.onreadystatechange
node_modules/web3/lib/web3/httpprovider.js:129
XMLHttpRequest../node_modules/xhr2-cookies/dist/xml-http-request-event-target.js.XMLHttpRequestEventTarget.dispatchEvent
node_modules/xhr2-cookies/dist/xml-http-request-event-target.js:34
XMLHttpRequest../node_modules/xhr2-cookies/dist/xml-http-request.js.XMLHttpRequest._setReadyState
node_modules/xhr2-cookies/dist/xml-http-request.js:208
XMLHttpRequest../node_modules/xhr2-cookies/dist/xml-http-request.js.XMLHttpRequest._onHttpRequestError
node_modules/xhr2-cookies/dist/xml-http-request.js:349
./node_modules/stream-http/lib/request.js.module.exports.<anonymous>
node_modules/xhr2-cookies/dist/xml-http-request.js:252
./node_modules/stream-http/lib/request.js.module.exports.emit
node_modules/events/events.js:153
(anonymous function)
node_modules/stream-http/lib/request.js:163
fjcaetano commented 3 years ago

Any updates on this? Or should we just assume C20 is another exit scam?

MatthewFin commented 3 years ago

@fjcaetano You should use the redemption DAPP hosted in our portal https://invictuscapital.com/app

Or alternatively query the smart contract directly via something like etherscan.io, you just need to make two transactions to redeem for C20