Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
jiexi committed Jan 24, 2025
1 parent d65cabf commit fc286d9
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions app/scripts/metamask-controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,7 @@ import {
///: BEGIN:ONLY_INCLUDE_IF(build-flask)
import { MultichainTransactionsController } from '@metamask/multichain-transactions-controller';
///: END:ONLY_INCLUDE_IF
import { hexToBigInt, toCaipChainId } from '@metamask/utils';
import {
methodsRequiringNetworkSwitch,
methodsThatCanSwitchNetworkWithoutApproval,
Expand Down Expand Up @@ -421,7 +422,6 @@ import { walletCreateSession } from './lib/rpc-method-middleware/handlers/wallet
import BridgeStatusController from './controllers/bridge-status/bridge-status-controller';
import { BRIDGE_STATUS_CONTROLLER_NAME } from './controllers/bridge-status/constants';
import { rejectAllApprovals } from './lib/approval/utils';
import { hexToBigInt, toCaipChainId } from '@metamask/utils';

const { TRIGGER_TYPES } = NotificationServicesController.Constants;
export const METAMASK_CONTROLLER_EVENTS = {
Expand Down Expand Up @@ -3309,7 +3309,10 @@ export default class MetamaskController extends EventEmitter {
this.controllerMessenger.subscribe(
'NetworkController:networkRemoved',
({ chainId }) => {
const scopeString = toCaipChainId('eip155', hexToBigInt(chainId).toString(10))
const scopeString = toCaipChainId(
'eip155',
hexToBigInt(chainId).toString(10),
);
this.removeAllScopePermissions(scopeString);
},
);
Expand Down

0 comments on commit fc286d9

Please sign in to comment.