Skip to content

Commit

Permalink
Merge pull request #24 from rarimo/hotfix/remove-hardcode-version
Browse files Browse the repository at this point in the history
fix remove hardcode verison
  • Loading branch information
ardier16 authored Dec 28, 2023
2 parents 7ffc241 + b33a8c8 commit d302980
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 d302980

Please sign in to comment.