Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
hjetpoluru committed Jun 14, 2024
1 parent f48a7dc commit 97cc7a7
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions app/scripts/metamask-controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -5190,17 +5190,6 @@ export default class MetamaskController extends EventEmitter {
}),
);

// EVM requests and eth permissions should not be passed to non-EVM accounts
// this middleware intercepts these requests and returns an error.
engine.push(
createEvmMethodsToNonEvmAccountReqFilterMiddleware({
messenger: this.controllerMessenger.getRestricted({
name: 'EvmMethodsToNonEvmAccountFilterMessenger',
allowedActions: ['AccountsController:getSelectedAccount'],
}),
}),
);

// Unrestricted/permissionless RPC method implementations.
// They must nevertheless be placed _behind_ the permission middleware.
engine.push(
Expand Down

0 comments on commit 97cc7a7

Please sign in to comment.