diff --git a/packages/snaps-sdk/src/types/permissions.ts b/packages/snaps-sdk/src/types/permissions.ts index 76fc232dcd..a591ee3957 100644 --- a/packages/snaps-sdk/src/types/permissions.ts +++ b/packages/snaps-sdk/src/types/permissions.ts @@ -37,7 +37,7 @@ export type RequestedSnap = { export type InitialPermissions = Partial<{ 'endowment:cronjob': { - jobs: Cronjob[]; + jobs?: Cronjob[]; maxRequestTime?: number; }; 'endowment:ethereum-provider': EmptyObject; diff --git a/packages/snaps-utils/src/manifest/validation.ts b/packages/snaps-utils/src/manifest/validation.ts index dd65132a10..ad14afc916 100644 --- a/packages/snaps-utils/src/manifest/validation.ts +++ b/packages/snaps-utils/src/manifest/validation.ts @@ -191,7 +191,7 @@ export const PermissionsStruct: Describe = type({ 'endowment:cronjob': optional( mergeStructs( HandlerCaveatsStruct, - object({ jobs: CronjobSpecificationArrayStruct }), + object({ jobs: optional(CronjobSpecificationArrayStruct) }), ), ), 'endowment:ethereum-provider': optional(EmptyObjectStruct),