fix(governance): hard coded default chain in vega wallet (#6026)

This commit is contained in:
Matthew Russell 2024-03-18 11:45:46 +00:00 committed by GitHub
parent f6f3fb43eb
commit 2928181884
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -9,7 +9,7 @@ import {
stagnet,
mainnet,
} from '@vegaprotocol/wallet';
import { useEnvironment } from '@vegaprotocol/environment';
import { CHAIN_IDS, useEnvironment } from '@vegaprotocol/environment';
export const useVegaWalletConfig = () => {
const { VEGA_ENV, VEGA_URL, VEGA_WALLET_URL } = useEnvironment();
@ -32,7 +32,7 @@ export const useVegaWalletConfig = () => {
const config = createConfig({
chains: [mainnet, fairground, stagnet],
defaultChainId: fairground.id,
defaultChainId: CHAIN_IDS[VEGA_ENV],
connectors: [injected, snap, jsonRpc, viewParty],
});