diff --git a/src/components/MetamaskSnap/InstallMetamaskSnapModal.tsx b/src/components/MetamaskSnap/InstallMetamaskSnapModal.tsx index 6e0e2c2ebe..ee6ff314c3 100644 --- a/src/components/MetamaskSnap/InstallMetamaskSnapModal.tsx +++ b/src/components/MetamaskSnap/InstallMetamaskSnapModal.tsx @@ -33,7 +33,7 @@ const InstallMetamaskSnapModal = ({ method: 'wallet_getSnaps' }); Object.keys(installedSnaps).forEach((snap) => { - if (snap == 'npm:push-v1') { + if (snap == 'npm:@pushprotocol/snaps') { setConfigure(true); } } diff --git a/src/components/MetamaskSnap/MetamaskSnapConfigureModal.tsx b/src/components/MetamaskSnap/MetamaskSnapConfigureModal.tsx index ac6cb4dd8e..86e2f20222 100644 --- a/src/components/MetamaskSnap/MetamaskSnapConfigureModal.tsx +++ b/src/components/MetamaskSnap/MetamaskSnapConfigureModal.tsx @@ -28,7 +28,7 @@ const MetamaskSnapConfigureModal = () => { const[toggleStatus, setToggleStatus] = useState(0); const theme = useTheme(); - const defaultSnapOrigin = 'npm:push-v1'; + const defaultSnapOrigin = 'npm:@pushprotocol/snaps'; const { chainId, account, provider } = useWeb3React(); diff --git a/src/components/MetamaskSnap/SnapInformationModal.tsx b/src/components/MetamaskSnap/SnapInformationModal.tsx index 2269fdc18b..426ca30a0a 100644 --- a/src/components/MetamaskSnap/SnapInformationModal.tsx +++ b/src/components/MetamaskSnap/SnapInformationModal.tsx @@ -17,7 +17,7 @@ import Metamask from 'assets/PushSnaps/metamasksnap.svg'; const SnapInformationModal = () => { const theme = useTheme(); - const defaultSnapOrigin = 'npm:push-v1'; + const defaultSnapOrigin = 'npm:@pushprotocol/snaps'; const connectSnap = async (snapId = defaultSnapOrigin, params = {}) => { await window.ethereum?.request({ diff --git a/src/modules/snap/SnapModule.tsx b/src/modules/snap/SnapModule.tsx index d00d616b5f..b3a952ac07 100644 --- a/src/modules/snap/SnapModule.tsx +++ b/src/modules/snap/SnapModule.tsx @@ -43,13 +43,13 @@ const SnapModule = () => { method: 'wallet_getSnaps', }); Object.keys(installedSnaps).forEach((snap) => { - if (snap == 'npm:push-v1') { + if (snap == 'npm:@pushprotocol/snaps') { setSnapInstalled(true); } }); } - const defaultSnapOrigin = `npm:push-v1`; + const defaultSnapOrigin = `npm:@pushprotocol/snaps`; async function connectSnap ( snapId = defaultSnapOrigin,