fix(governance): hard coded default chain in vega wallet (#6026)
This commit is contained in:
parent
f6f3fb43eb
commit
2928181884
@ -9,7 +9,7 @@ import {
|
|||||||
stagnet,
|
stagnet,
|
||||||
mainnet,
|
mainnet,
|
||||||
} from '@vegaprotocol/wallet';
|
} from '@vegaprotocol/wallet';
|
||||||
import { useEnvironment } from '@vegaprotocol/environment';
|
import { CHAIN_IDS, useEnvironment } from '@vegaprotocol/environment';
|
||||||
|
|
||||||
export const useVegaWalletConfig = () => {
|
export const useVegaWalletConfig = () => {
|
||||||
const { VEGA_ENV, VEGA_URL, VEGA_WALLET_URL } = useEnvironment();
|
const { VEGA_ENV, VEGA_URL, VEGA_WALLET_URL } = useEnvironment();
|
||||||
@ -32,7 +32,7 @@ export const useVegaWalletConfig = () => {
|
|||||||
|
|
||||||
const config = createConfig({
|
const config = createConfig({
|
||||||
chains: [mainnet, fairground, stagnet],
|
chains: [mainnet, fairground, stagnet],
|
||||||
defaultChainId: fairground.id,
|
defaultChainId: CHAIN_IDS[VEGA_ENV],
|
||||||
connectors: [injected, snap, jsonRpc, viewParty],
|
connectors: [injected, snap, jsonRpc, viewParty],
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user