Skip to content

Commit

Permalink
hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
lukachi committed Nov 15, 2023
1 parent e93d056 commit db0384e
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -124,18 +124,15 @@ const MetamaskZkpSnapContextProvider: FC<HTMLAttributes<HTMLDivElement>> = ({
}, [])

const checkSnapExists = useCallback(async () => {
const _isSnapInstalled = await detectSnapInstalled(
'local:http://localhost:8081',
'0.8.0',
)
const _isSnapInstalled = await detectSnapInstalled()

setIsSnapInstalled(_isSnapInstalled)

return _isSnapInstalled
}, [])

const connectOrInstallSnap = useCallback(async () => {
const snap = await enableSnap('local:http://localhost:8081', '0.8.0')
const snap = await enableSnap()
const connector = await snap.getConnector()
setConnector(connector)
}, [])
Expand Down

0 comments on commit db0384e

Please sign in to comment.