frontend-monorepo icon indicating copy to clipboard operation
frontend-monorepo copied to clipboard

TFE should take the chain id from the request URL (vega capsule FE config)

Open gordsport opened this issue 2 years ago • 2 comments

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:

Screenshot 2022-12-01 at 16 44 32

URL = http://127.0.0.1:3028/query

This then presents me with the following error:

This app only works on chain ID: 1440

Screenshot 2022-12-01 at 16 46 23

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

gordsport avatar Dec 01 '22 16:12 gordsport

@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)

gordsport avatar Dec 01 '22 19:12 gordsport

It should be doing this already, we made this change months ago so likely something has gone incorrect during this.

dexturr avatar Dec 05 '22 09:12 dexturr