Skip to content

Commit

Permalink
Add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Mrtenz committed Dec 18, 2024
1 parent c7c2c50 commit 6cc7dad
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/snaps-simulation/src/middleware/engine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,12 @@ export function createJsonRpcEngine({
}: CreateJsonRpcEngineOptions) {
const engine = new JsonRpcEngine();
engine.push(createMockMiddleware(store));

// The hooks here do not match the hooks used by the clients, so this
// middleware should not be used outside of the simulation environment.
engine.push(createInternalMethodsMiddleware(restrictedHooks));
engine.push(createSnapsMethodMiddleware(true, permittedHooks));

engine.push(permissionMiddleware);
engine.push(
createFetchMiddleware({
Expand Down

0 comments on commit 6cc7dad

Please sign in to comment.