From 29fb999ed961154f3c22079a48b4cd809650dea3 Mon Sep 17 00:00:00 2001 From: Rohit Ranjan Date: Mon, 6 Nov 2023 14:12:42 +0530 Subject: [PATCH] fix default devnet index --- plugin/src/atoms/environment.ts | 2 +- .../src/components/DevnetAccountSelector/index.tsx | 12 +++++++----- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/plugin/src/atoms/environment.ts b/plugin/src/atoms/environment.ts index 53192bb3..833c8c2f 100644 --- a/plugin/src/atoms/environment.ts +++ b/plugin/src/atoms/environment.ts @@ -2,7 +2,7 @@ import { atom } from 'jotai' import { type Devnet, devnets, type DevnetAccount } from '../utils/network' -const devnetAtom = atom(devnets[0]) +const devnetAtom = atom(devnets[1]) export type Env = 'remoteDevnet' | 'wallet' | 'manual' | 'localDevnet' diff --git a/plugin/src/components/DevnetAccountSelector/index.tsx b/plugin/src/components/DevnetAccountSelector/index.tsx index 04720624..0f1bf333 100644 --- a/plugin/src/components/DevnetAccountSelector/index.tsx +++ b/plugin/src/components/DevnetAccountSelector/index.tsx @@ -178,11 +178,13 @@ const DevnetAccountSelector: React.FC = () => { { setDropdownControl(e) }}>
- +