From 9f58c59b8c46c91ea9ec4cbe6ac09fb141eb25c1 Mon Sep 17 00:00:00 2001 From: Frederik Bolding Date: Fri, 29 Nov 2024 12:16:21 +0100 Subject: [PATCH] chore: Add link to notification example --- packages/examples/packages/notifications/snap.manifest.json | 2 +- packages/examples/packages/notifications/src/index.test.ts | 2 +- packages/examples/packages/notifications/src/index.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/examples/packages/notifications/snap.manifest.json b/packages/examples/packages/notifications/snap.manifest.json index 08da285ebb..0f06b2cc08 100644 --- a/packages/examples/packages/notifications/snap.manifest.json +++ b/packages/examples/packages/notifications/snap.manifest.json @@ -7,7 +7,7 @@ "url": "https://github.com/MetaMask/snaps.git" }, "source": { - "shasum": "FxFEoTtrqrgcIixfoilv0YsEofcugLh1ZNLpz1tz/us=", + "shasum": "SELpk82JtBQolxOnwrXlAG8OCIfDSP8tc1j7FZzA5ps=", "location": { "npm": { "filePath": "dist/bundle.js", diff --git a/packages/examples/packages/notifications/src/index.test.ts b/packages/examples/packages/notifications/src/index.test.ts index 3d046637ef..950bdddb79 100644 --- a/packages/examples/packages/notifications/src/index.test.ts +++ b/packages/examples/packages/notifications/src/index.test.ts @@ -32,7 +32,7 @@ describe('onRpcRequest', () => { expect(response).toRespondWith(null); expect(response).toSendNotification( - 'Hello from within MetaMask!', + 'Hello from within MetaMask! [This](https://snaps.metamask.io/) is a what a link looks like.', NotificationType.InApp, ); }); diff --git a/packages/examples/packages/notifications/src/index.ts b/packages/examples/packages/notifications/src/index.ts index 2a7ca1619d..03cb37a4be 100644 --- a/packages/examples/packages/notifications/src/index.ts +++ b/packages/examples/packages/notifications/src/index.ts @@ -24,7 +24,7 @@ export const onRpcRequest: OnRpcRequestHandler = async ({ request }) => { // We're using the `NotificationType` enum here, but you can also use // the string values directly, e.g. `type: 'inApp'`. type: NotificationType.InApp, - message: `Hello from within MetaMask!`, + message: `Hello from within MetaMask! [This](https://snaps.metamask.io/) is a what a link looks like.`, }, });