omni / bridge-ui

UI for TokenBridge, an interoperability solution between Ethereum networks for native and ERC tokens
https://bridge.poa.net/
41 stars 51 forks source link

Fix get fee methods for production build #202

Closed patitonar closed 5 years ago

patitonar commented 5 years ago

Fix the error that appears on the production build of the app when trying to convert fee values:

Uncaught (in promise) Error: Please pass numbers as strings or BigNumber objects to avoid precision errors.
    at t.fromWei (web3-utils.umd.js:541)
    at contract.js:104
    at _ (runtime.js:62)
    at Generator._invoke (runtime.js:288)
    at Generator.t.(/anonymous function) [as next] (https://wetc.app/static/js/2.e710153c.chunk.js:1:649390)
    at r (asyncToGenerator.js:3)
    at s (asyncToGenerator.js:25)
netlify[bot] commented 5 years ago

Deploy preview for kind-kilby-95344f processing.

Building with commit 81b327c005d929b4612f8394eea0026b9fb3ac32

https://app.netlify.com/sites/kind-kilby-95344f/deploys/5c9be87d6a4ea1000de0efd8