Skip to content

Commit

Permalink
remove MMC init grantPermissions
Browse files Browse the repository at this point in the history
  • Loading branch information
jiexi committed Jun 27, 2024
1 parent 5eb46ab commit 7ed07db
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions app/scripts/metamask-controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -310,10 +310,6 @@ import { WeakRefObjectMap } from './lib/WeakRefObjectMap';
import AuthenticationController from './controllers/authentication/authentication-controller';
import UserStorageController from './controllers/user-storage/user-storage-controller';
import { PushPlatformNotificationsController } from './controllers/push-platform-notifications/push-platform-notifications';
// import {
// Caip25CaveatType,
// Caip25EndowmentPermissionName,
// } from './lib/multichain-api/caip25permissions';
import { MetamaskNotificationsController } from './controllers/metamask-notifications/metamask-notifications';
import { createTxVerificationMiddleware } from './lib/tx-verification/tx-verification-middleware';
import { updateSecurityAlertResponse } from './lib/ppom/ppom-util';
Expand Down Expand Up @@ -1296,26 +1292,6 @@ export default class MetamaskController extends EventEmitter {
setupSnapProvider: this.setupSnapProvider.bind(this),
};

// this.permissionController.grantPermissions({
// subject: {
// origin: 'https://metamask.github.io',
// },
// approvedPermissions: {
// [Caip25EndowmentPermissionName]: {
// caveats: [
// {
// type: Caip25CaveatType,
// value: {
// requiredScopes: { 'henlo': 'there' },
// optionalScopes: { 'foo' : 'bar'}
// }
// }
// ]
// },
// },
// });
// console.log('permission controller state', this.permissionController.state);

this.snapExecutionService =
shouldUseOffscreenExecutionService === false
? new IframeExecutionService({
Expand Down

0 comments on commit 7ed07db

Please sign in to comment.