Skip to content

Commit

Permalink
chore: clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
zone-live committed Feb 6, 2025
1 parent e1fe97e commit 4cbb48f
Showing 1 changed file with 1 addition and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@ import { HandlerType } from '@metamask/snaps-utils';
import type { Json, JsonRpcRequest } from '@metamask/utils';
import type { Draft } from 'immer';

import { getScopeForAccount } from './utils';
import { NETWORK_ASSETS_MAP } from './constants';

const controllerName = 'MultichainBalancesController';

/**
Expand Down Expand Up @@ -188,18 +185,11 @@ export class MultichainBalancesController extends BaseController<
const account = this.#getAccount(accountId);

if (account.metadata.snap) {
const scope = getScopeForAccount(account);

const assetsState = this.messagingSystem.call(
'MultichainAssetsController:getState',
);

let assetTypes = assetsState.accountsAssets[accountId] ?? [];

if (scope && NETWORK_ASSETS_MAP[scope]) {
const nativeAssets = NETWORK_ASSETS_MAP[scope];
assetTypes = [...new Set([...nativeAssets, ...assetTypes])];
}
const assetTypes = assetsState.accountsAssets[accountId] ?? [];

const accountBalance = await this.#getBalances(
account.id,
Expand Down

0 comments on commit 4cbb48f

Please sign in to comment.