From b33a8c89661563378edbae3eaf0137a3da733beb Mon Sep 17 00:00:00 2001 From: nikitabelous Date: Thu, 28 Dec 2023 12:51:13 +0200 Subject: [PATCH] fix remove hardcode verison --- .../MetamaskZkpSnapContext/MetamaskZkpSnapContext.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/contexts/MetamaskZkpSnapContext/MetamaskZkpSnapContext.tsx b/src/contexts/MetamaskZkpSnapContext/MetamaskZkpSnapContext.tsx index aae43ec..8a9e287 100644 --- a/src/contexts/MetamaskZkpSnapContext/MetamaskZkpSnapContext.tsx +++ b/src/contexts/MetamaskZkpSnapContext/MetamaskZkpSnapContext.tsx @@ -136,7 +136,7 @@ const MetamaskZkpSnapContextProvider: FC> = ({ }, []) const checkSnapExists = useCallback(async () => { - const _isSnapInstalled = await detectSnapInstalled(undefined, '1.0.2') + const _isSnapInstalled = await detectSnapInstalled() setIsSnapInstalled(_isSnapInstalled) @@ -144,7 +144,7 @@ const MetamaskZkpSnapContextProvider: FC> = ({ }, []) const connectOrInstallSnap = useCallback(async () => { - const snap = await enableSnap(undefined, '1.0.2') + const snap = await enableSnap() const connector = await snap.getConnector() setConnector(connector)