Agoric / wallet-app

Site for wallet.agoric.app
https://wallet.agoric.app/
2 stars 7 forks source link

Localhost connection config should use current hostname #104

Closed samsiegart closed 1 year ago

samsiegart commented 1 year ago

Describe the bug

The wallet UI hosts a network config at https://wallet.agoric.app/wallet/network-config which points to a local chain (http://localhost:26657). When you want to connect to it, you would select the "localhost" option in the wallet UI. However, this requires that the wallet UI is running on your localhost as well, because it's hard-coded to http://localhost:3000/wallet/network-config (see screenshot). You shouldn't need to run the wallet UI locally to access a local chain. Right now the workaround is to use Custom URL and set it to https://local.agoric.net/network-config or https://wallet.agoric.app/wallet/network-config which also point to http://localhost:26657.

To Reproduce

Open the "Connection Settings" menu in the nav bar, try to select localhost.

Expected behavior

It should just use whatever the current hostname is, it will always be available since you're using it.

Screenshots

Screenshot 2023-06-28 at 1 42 29 PM

If applicable, add screenshots to help explain your problem, especially for UI interactions.