frontend-monorepo
frontend-monorepo copied to clipboard
TFE should take the chain id from the request URL (vega capsule FE config)
Since getting the latest FE docker containers for vega capsule and re-testing vegacapsule using the frontends config I see the following issue:
When trying to change the URL that its pointing to to get data:

URL = http://127.0.0.1:3028/query
This then presents me with the following error:
This app only works on chain ID: 1440

It does however seem to work as expected on BE and console (however I have yet to use these dApps in anger).
The correct chain ID is set in the config, but that's for the ganache image. As far as I understand the FE should take the chain id from the request URL.
Originally posted by @gordsport in https://github.com/vegaprotocol/frontend-monorepo/issues/2252#issuecomment-1333795401
@pennyandrews @dexturr
Ive noticed this on mainnet too: This app only works on chain ID: 1
But clicking disconnect and it works OK.
noticed on: Chrome Version 107.0.5304.110 (Official Build) (arm64)
I do not see the same on safari or brave (maybe a caching thing in the browser, however didn't go away with Apple+Shift+R)
It should be doing this already, we made this change months ago so likely something has gone incorrect during this.