Skip to content

Commit 97e7056

Browse files
committed
Add message signing snap ID and update initialConnections logic
1 parent e5ae2ae commit 97e7056

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

packages/gator-permissions-snap/snap.manifest.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import type { SnapManifest } from '@metamask/7715-permissions-shared/types';
55

66
const kernelSnapId = process.env.KERNEL_SNAP_ID;
7+
const messageSnapId = process.env.MESSAGE_SIGNING_SNAP_ID;
78

89
const manifest: SnapManifest = {
910
version: '0.2.1',
@@ -41,7 +42,8 @@ const manifest: SnapManifest = {
4142

4243
if (kernelSnapId) {
4344
manifest.initialConnections = {
44-
[kernelSnapId]: {},
45+
...(kernelSnapId ? { [kernelSnapId]: {} } : {}),
46+
...(messageSnapId ? { [messageSnapId]: {} } : {}),
4547
};
4648
}
4749

packages/permissions-kernel-snap/snap.manifest.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
1+
/* eslint-disable @typescript-eslint/naming-convention */
12
/* eslint-disable no-restricted-globals */
23
import type { SnapManifest } from '@metamask/7715-permissions-shared/types';
34

5+
const gatorSnapId = process.env.GATOR_PERMISSIONS_PROVIDER_SNAP_ID;
6+
47
const manifest: SnapManifest = {
58
version: '0.2.0',
69
description: 'Manage onchain 7715 permissions',
@@ -30,4 +33,10 @@ const manifest: SnapManifest = {
3033
manifestVersion: '0.1',
3134
};
3235

36+
if (gatorSnapId) {
37+
manifest.initialConnections = {
38+
[gatorSnapId]: {},
39+
};
40+
}
41+
3342
export default manifest;

0 commit comments

Comments
 (0)