Skip to content

Commit

Permalink
update: snap build
Browse files Browse the repository at this point in the history
  • Loading branch information
Arch0125 committed Sep 19, 2023
1 parent b9c45f5 commit 3f22c32
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/components/MetamaskSnap/InstallMetamaskSnapModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/MetamaskSnap/MetamaskSnapConfigureModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down
2 changes: 1 addition & 1 deletion src/components/MetamaskSnap/SnapInformationModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down
4 changes: 2 additions & 2 deletions src/modules/snap/SnapModule.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 3f22c32

Please sign in to comment.