DexyProject / dexy-ui

UI for DEXY exchange
https://dexy.exchange
2 stars 0 forks source link

no exceptions when using the wrong network #67

Open Ivshti opened 6 years ago

Ivshti commented 6 years ago

e.g. if a config for ropsten is loaded, but you're using metamask with mainnet, there will be exceptions of the type:

Error: Couldn't decode uint256 from ABI: 0x
  at SolidityTypeUInt.formatOutputUInt [as _outputFormatter] (/depsblob.js:121112:15)
  at SolidityTypeUInt.SolidityType.decode (/depsblob.js:122043:17)
  at None (/depsblob.js:121555:49)
  at Array.forEach (<anonymous>)
  at ABICoder.decodeParameters (/depsblob.js:121554:13)
...
(43 additional frame(s) were not displayed)

this obviously happens cause the contract does not exist