diff --git a/src/contexts/MetamaskZkpSnapContext/MetamaskZkpSnapContext.tsx b/src/contexts/MetamaskZkpSnapContext/MetamaskZkpSnapContext.tsx index 8a9e287..aae43ec 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() + const _isSnapInstalled = await detectSnapInstalled(undefined, '1.0.2') setIsSnapInstalled(_isSnapInstalled) @@ -144,7 +144,7 @@ const MetamaskZkpSnapContextProvider: FC> = ({ }, []) const connectOrInstallSnap = useCallback(async () => { - const snap = await enableSnap() + const snap = await enableSnap(undefined, '1.0.2') const connector = await snap.getConnector() setConnector(connector)