Skip to content

Commit cc47984

Browse files
feat: Implement SIP-31 (#3394)
Introduces the `onClientRequest` handler as specified in SIP-31. This handler can only be called by MetaMask and is available to all Snaps without permission. It can be used for general purpose communication that must not be exposed to dapps (as `onRpcRequest`). This handler is enforced to only be callable by the `metamask` origin, as part of this PR this same validation is applied to all handlers in `CLIENT_ONLY_HANDLERS`. Closes #3392 --------- Co-authored-by: Maarten Zuidhoorn <[email protected]>
1 parent 77b33ab commit cc47984

File tree

14 files changed

+228
-50
lines changed

14 files changed

+228
-50
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"branches": 93.61,
2+
"branches": 93.64,
33
"functions": 98.16,
44
"lines": 98.5,
5-
"statements": 98.33
5+
"statements": 98.34
66
}

0 commit comments

Comments
 (0)