Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
Mrtenz committed Oct 22, 2024
1 parent 9cbcdeb commit 424c69e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions packages/snaps-controllers/src/snaps/SnapController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1336,7 +1336,10 @@ export class SnapController extends BaseController<

async #assertIsInstallAllowed(
snapId: SnapId,
snapInfo: SnapsRegistryInfo & {
{
platformVersion,
...snapInfo
}: SnapsRegistryInfo & {
permissions: SnapPermissions;
platformVersion: string | undefined;
},
Expand Down Expand Up @@ -1374,7 +1377,7 @@ export class SnapController extends BaseController<
);
}

this.#validatePlatformVersion(snapId, snapInfo.platformVersion);
this.#validatePlatformVersion(snapId, platformVersion);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion packages/snaps-utils/coverage.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
"branches": 99.74,
"functions": 98.93,
"lines": 99.46,
"statements": 96.37
"statements": 96.36
}

0 comments on commit 424c69e

Please sign in to comment.