Skip to content

Commit

Permalink
fix remove hardcode verison
Browse files Browse the repository at this point in the history
  • Loading branch information
WhiteNik16 committed Dec 28, 2023
1 parent 7ffc241 commit b33a8c8
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 b33a8c8

Please sign in to comment.