Skip to content

Commit

Permalink
Use snap 1.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
ardier16 committed Jan 26, 2024
1 parent 33469a1 commit 496a734
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -136,15 +136,15 @@ const MetamaskZkpSnapContextProvider: FC<HTMLAttributes<HTMLDivElement>> = ({
}, [])

const checkSnapExists = useCallback(async () => {
const _isSnapInstalled = await detectSnapInstalled(undefined, '1.0.2')
const _isSnapInstalled = await detectSnapInstalled()

setIsSnapInstalled(_isSnapInstalled)

return _isSnapInstalled
}, [])

const connectOrInstallSnap = useCallback(async () => {
const snap = await enableSnap(undefined, '1.0.2')
const snap = await enableSnap()
const connector = await snap.getConnector()

setConnector(connector)
Expand Down

0 comments on commit 496a734

Please sign in to comment.