Skip to content

Commit 84a60b0

Browse files
committed
WIP
1 parent c6f3b85 commit 84a60b0

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

packages/snaps-utils/src/snaps.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,10 +91,17 @@ export type SnapAuxiliaryFile = {
9191
*/
9292
export 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
*/

packages/snaps-utils/src/test-utils/snap.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff 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,

0 commit comments

Comments
 (0)