Skip to content

Commit a5b7e1a

Browse files
committed
Make state fields optional in runtime data
1 parent 9e4e4d8 commit a5b7e1a

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

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

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -257,12 +257,12 @@ export interface SnapRuntimeData {
257257
/**
258258
* Cached encrypted state of the Snap.
259259
*/
260-
state: Record<string, Json> | null;
260+
state?: Record<string, Json> | null;
261261

262262
/**
263263
* Cached unencrypted state of the Snap.
264264
*/
265-
unencryptedState: Record<string, Json> | null;
265+
unencryptedState?: Record<string, Json> | null;
266266
}
267267

268268
export type SnapError = {
@@ -3800,8 +3800,6 @@ export class SnapController extends BaseController<
38003800
pendingOutboundRequests: 0,
38013801
interpreter,
38023802
stopping: false,
3803-
state: undefined,
3804-
unencryptedState: undefined,
38053803
});
38063804
}
38073805

0 commit comments

Comments
 (0)