Skip to content

Commit

Permalink
Merge pull request #15 from rarimo/hotfix/snap-version
Browse files Browse the repository at this point in the history
fix version rarime connector
  • Loading branch information
WhiteNik16 authored Dec 11, 2023
2 parents 5b05d6d + 3ea6bea commit e0662f3
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()
const _isSnapInstalled = await detectSnapInstalled(undefined, '1.0.2')

setIsSnapInstalled(_isSnapInstalled)

return _isSnapInstalled
}, [])

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

setConnector(connector)
Expand Down

0 comments on commit e0662f3

Please sign in to comment.