VM execution error. Default .env
errors.js:29 Uncaught (in promise) Error: Returned error: VM execution error.
at Object.ErrorResponse (http://localhost:3000/static/js/bundle.js:89731:16)
at http://localhost:3000/static/js/bundle.js:96956:36
at XMLHttpRequest.request.onreadystatechange (http://localhost:3000/static/js/bundle.js:112036:13)
From previous event:
at PromiEvent (http://localhost:3000/static/js/bundle.js:96582:24)
at send (http://localhost:3000/static/js/bundle.js:90698:21)
at Object._executeMethod (http://localhost:3000/static/js/bundle.js:110780:24)
at RootStore._callee$ (http://localhost:3000/static/js/bundle.js:127546:59)
at tryCatch (http://localhost:3000/static/js/bundle.js:77465:40)
at Generator.invoke [as _invoke] (http://localhost:3000/static/js/bundle.js:77699:22)
at Generator.prototype.(anonymous function) [as next] (http://localhost:3000/static/js/bundle.js:77517:21)
at step (http://localhost:3000/static/js/bundle.js:127476:191)
at http://localhost:3000/static/js/bundle.js:127476:437
at new Promise (
maybe it's about web3-providers-http, using 1.0.0-beta.30, tried 1.0.0-beta.34, error log is even less.
Hi @meng-x! I was able to reproduce the error when running the app using as .env file the same values on .env.example. Is this your case?
The problem with using those default values is that the home and foreign bridge addresses are just example addresses and not real deployed bridges on the specified networks.
REACT_APP_HOME_BRIDGE_ADDRESS=
REACT_APP_FOREIGN_BRIDGE_ADDRESS=
REACT_APP_FOREIGN_HTTP_PARITY_URL=https://kovan.infura.io/mew
REACT_APP_HOME_HTTP_PARITY_URL=https://sokol.poa.network
So the error is produced because the app is making contract method calls to those addresses.
You should follow the steps on https://github.com/poanetwork/bridge-ui#getting-started to deploy and use your own bridge.
Also, If you want to take a look at already deployed bridges, you can visit:
- https://bridge.poa.network/
- https://dai-bridge.poa.network/