Skip to content

Commit

Permalink
Merge branch 'main' into patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
Mrtenz authored Sep 24, 2024
2 parents 32225cc + 803d314 commit b7ee17c
Show file tree
Hide file tree
Showing 18 changed files with 854 additions and 141 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"url": "https://github.com/MetaMask/snaps.git"
},
"source": {
"shasum": "jwgw2+/MUcLjedTMSpFqL/dhwR8/j3gHWmNJVevvfWE=",
"shasum": "Rvk4nDRt8bofy5oUtavVGwVB0pnZ7BdsmO9V315Qs+w=",
"location": {
"npm": {
"filePath": "dist/bundle.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/examples/packages/browserify/snap.manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"url": "https://github.com/MetaMask/snaps.git"
},
"source": {
"shasum": "u+bnPdpw6us0nDDr3k28cfDoIA+5CT1Y7A88nYJLNGk=",
"shasum": "3LsbiHzT2I8gHJPQCu6JbTiKKCy5XA2VQQdW9Qkn3XU=",
"location": {
"npm": {
"filePath": "dist/bundle.js",
Expand Down
6 changes: 3 additions & 3 deletions packages/snaps-controllers/coverage.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"branches": 92.6,
"functions": 96.95,
"lines": 98.02,
"statements": 97.72
"functions": 96.65,
"lines": 97.97,
"statements": 97.67
}
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ import { assert } from '@metamask/utils';
import { castDraft } from 'immer';
import { nanoid } from 'nanoid';

import type { GetSnap } from '../snaps';
import {
constructState,
getJsxInterface,
Expand Down Expand Up @@ -74,7 +75,8 @@ export type SnapInterfaceControllerAllowedActions =
| TestOrigin
| MaybeUpdateState
| HasApprovalRequest
| AcceptRequest;
| AcceptRequest
| GetSnap;

export type SnapInterfaceControllerActions =
| CreateInterface
Expand Down Expand Up @@ -379,6 +381,10 @@ export class SnapInterfaceController extends BaseController<
);

await this.#triggerPhishingListUpdate();
validateJsxLinks(element, this.#checkPhishingList.bind(this));
validateJsxLinks(
element,
this.#checkPhishingList.bind(this),
(id: string) => this.messagingSystem.call('SnapController:get', id),
);
}
}
6 changes: 3 additions & 3 deletions packages/snaps-rpc-methods/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ module.exports = deepmerge(baseConfig, {
],
coverageThreshold: {
global: {
branches: 92.62,
branches: 92.68,
functions: 97.17,
lines: 97.67,
statements: 97.16,
lines: 97.71,
statements: 97.21,
},
},
});
Loading

0 comments on commit b7ee17c

Please sign in to comment.