File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change 44import type { SnapManifest } from '@metamask/7715-permissions-shared/types' ;
55
66const kernelSnapId = process . env . KERNEL_SNAP_ID ;
7+ const messageSnapId = process . env . MESSAGE_SIGNING_SNAP_ID ;
78
89const manifest : SnapManifest = {
910 version : '0.2.1' ,
@@ -41,7 +42,8 @@ const manifest: SnapManifest = {
4142
4243if ( kernelSnapId ) {
4344 manifest . initialConnections = {
44- [ kernelSnapId ] : { } ,
45+ ...( kernelSnapId ? { [ kernelSnapId ] : { } } : { } ) ,
46+ ...( messageSnapId ? { [ messageSnapId ] : { } } : { } ) ,
4547 } ;
4648}
4749
Original file line number Diff line number Diff line change 1+ /* eslint-disable @typescript-eslint/naming-convention */
12/* eslint-disable no-restricted-globals */
23import type { SnapManifest } from '@metamask/7715-permissions-shared/types' ;
34
5+ const gatorSnapId = process . env . GATOR_PERMISSIONS_PROVIDER_SNAP_ID ;
6+
47const 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+
3342export default manifest ;
You can’t perform that action at this time.
0 commit comments