Skip to content

Commit 6cc7dad

Browse files
committed
Add comment
1 parent c7c2c50 commit 6cc7dad

File tree

1 file changed

+4
-0
lines changed
  • packages/snaps-simulation/src/middleware

1 file changed

+4
-0
lines changed

packages/snaps-simulation/src/middleware/engine.ts

+4
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,12 @@ export function createJsonRpcEngine({
4545
}: CreateJsonRpcEngineOptions) {
4646
const engine = new JsonRpcEngine();
4747
engine.push(createMockMiddleware(store));
48+
49+
// The hooks here do not match the hooks used by the clients, so this
50+
// middleware should not be used outside of the simulation environment.
4851
engine.push(createInternalMethodsMiddleware(restrictedHooks));
4952
engine.push(createSnapsMethodMiddleware(true, permittedHooks));
53+
5054
engine.push(permissionMiddleware);
5155
engine.push(
5256
createFetchMiddleware({

0 commit comments

Comments
 (0)