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)