From 4ebb3552e5b99d0ca31a3ba40d9c817d7bcbbc9d Mon Sep 17 00:00:00 2001 From: Lyka Labrada Date: Tue, 24 Oct 2023 00:20:23 +0800 Subject: [PATCH] chore(logs): add info logs in evm provider --- mobile-app/app/contexts/EVMProvider.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mobile-app/app/contexts/EVMProvider.tsx b/mobile-app/app/contexts/EVMProvider.tsx index 8a90d54115..b9eee0a68e 100644 --- a/mobile-app/app/contexts/EVMProvider.tsx +++ b/mobile-app/app/contexts/EVMProvider.tsx @@ -37,7 +37,9 @@ export function EVMProvider({ const { chainId } = await provider.getNetwork(); setChainId(chainId); setProvider(provider); + logger.info(`ChainID: ${chainId}`); } catch (e) { + logger.info(`Eth rpc url: ${ethRpcUrl}`); logger.error(e); // Note: Added this for cases wherein eth rpc url is invalid or unreachable setChainId(0);