From d726d929800cf8cd517493d8e4674f395ae0debb Mon Sep 17 00:00:00 2001 From: aniket-engg Date: Mon, 22 Apr 2024 20:18:42 +0530 Subject: [PATCH] added comment --- libs/remix-ui/run-tab/src/lib/actions/events.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libs/remix-ui/run-tab/src/lib/actions/events.ts b/libs/remix-ui/run-tab/src/lib/actions/events.ts index f938d19227..7b633ab30e 100644 --- a/libs/remix-ui/run-tab/src/lib/actions/events.ts +++ b/libs/remix-ui/run-tab/src/lib/actions/events.ts @@ -14,6 +14,9 @@ import { shortenAddress } from "@remix-ui/helper" const _paq = window._paq = window._paq || [] export const setupEvents = (plugin: RunTab, dispatch: React.Dispatch) => { + // This maintains current network state and update the pinned contracts list, + // only when there is a change in provider or in chain id for same provider + // as 'networkStatus' is triggered in each 10 seconds const currentNetwork = { provider: null, chainId: null