File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed
Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -91,10 +91,17 @@ export type SnapAuxiliaryFile = {
9191 */
9292export type SnapAuxilaryFile = SnapAuxiliaryFile ;
9393
94- export type PersistedSnap = Snap & {
94+ /**
95+ * A Snap's data as stored in the StorageService.
96+ */
97+ export type StorageServiceSnapData = {
9598 sourceCode : string ;
9699} ;
97100
101+ export type PersistedSnap = Snap ;
102+
103+ export type StoredSnap = PersistedSnap & StorageServiceSnapData ;
104+
98105/**
99106 * A Snap as it exists in {@link SnapController} state.
100107 */
Original file line number Diff line number Diff line change @@ -59,7 +59,6 @@ export const getSnapObject = ({
5959 enabled = true ,
6060 id = MOCK_SNAP_ID ,
6161 initialPermissions = getSnapManifest ( ) . initialPermissions ,
62- sourceCode = DEFAULT_SNAP_BUNDLE ,
6362 manifest = getSnapManifest ( ) ,
6463 status = SnapStatus . Stopped ,
6564 version = getSnapManifest ( ) . version ,
@@ -74,7 +73,6 @@ export const getSnapObject = ({
7473 return {
7574 blocked,
7675 initialPermissions,
77- sourceCode,
7876 id,
7977 version : version as SemVerVersion ,
8078 manifest,
You can’t perform that action at this time.
0 commit comments