Skip to content

Commit 0eee7ab

Browse files
Add missing metadata
1 parent e3e359b commit 0eee7ab

File tree

6 files changed

+10
-10
lines changed

6 files changed

+10
-10
lines changed

packages/snaps-controllers/src/cronjob/CronjobController.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ export class CronjobController extends BaseController<
179179
events: {
180180
includeInStateLogs: false,
181181
persist: false,
182-
anonymous: false,
182+
includeInDebugSnapshot: false,
183183
usedInUi: false,
184184
},
185185
},

packages/snaps-controllers/src/insights/SnapInsightsController.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ export class SnapInsightsController extends BaseController<
101101
insights: {
102102
includeInStateLogs: true,
103103
persist: false,
104-
anonymous: false,
104+
includeInDebugSnapshot: false,
105105
usedInUi: true,
106106
},
107107
},

packages/snaps-controllers/src/interface/SnapInterfaceController.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ export class SnapInterfaceController extends BaseController<
214214
}
215215
}, {});
216216
},
217-
anonymous: false,
217+
includeInDebugSnapshot: false,
218218
usedInUi: true,
219219
},
220220
},

packages/snaps-controllers/src/snaps/SnapController.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { deriveStateFromMetadata } from '@metamask/base-controller/next';
21
import { getPersistentState } from '@metamask/base-controller';
2+
import { deriveStateFromMetadata } from '@metamask/base-controller/next';
33
import { encrypt } from '@metamask/browser-passworder';
44
import {
55
createAsyncMiddleware,

packages/snaps-controllers/src/snaps/SnapController.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -975,13 +975,13 @@ export class SnapController extends BaseController<
975975
snapStates: {
976976
includeInStateLogs: false,
977977
persist: true,
978-
anonymous: false,
978+
includeInDebugSnapshot: false,
979979
usedInUi: false,
980980
},
981981
unencryptedSnapStates: {
982982
includeInStateLogs: false,
983983
persist: true,
984-
anonymous: false,
984+
includeInDebugSnapshot: false,
985985
usedInUi: false,
986986
},
987987
snaps: {
@@ -1017,7 +1017,7 @@ export class SnapController extends BaseController<
10171017
}, {})
10181018
);
10191019
},
1020-
anonymous: false,
1020+
includeInDebugSnapshot: false,
10211021
// TODO: Ensure larger snap properties are not sent to the UI
10221022
// Currently these are stripped out manually in the extension
10231023
usedInUi: true,

packages/snaps-controllers/src/snaps/registry/json.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,19 +143,19 @@ export class JsonSnapsRegistry extends BaseController<
143143
database: {
144144
includeInStateLogs: true,
145145
persist: true,
146-
anonymous: false,
146+
includeInDebugSnapshot: false,
147147
usedInUi: true,
148148
},
149149
lastUpdated: {
150150
includeInStateLogs: true,
151151
persist: true,
152-
anonymous: false,
152+
includeInDebugSnapshot: true,
153153
usedInUi: false,
154154
},
155155
databaseUnavailable: {
156156
includeInStateLogs: true,
157157
persist: true,
158-
anonymous: false,
158+
includeInDebugSnapshot: true,
159159
usedInUi: false,
160160
},
161161
},

0 commit comments

Comments
 (0)