Skip to content

Commit

Permalink
chore: fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
mikesposito committed Jul 17, 2023
1 parent 4ced58e commit 13a2ec7
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 24 deletions.
18 changes: 7 additions & 11 deletions packages/keyring-controller/src/KeyringController.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { TransactionFactory } from '@ethereumjs/tx';
import { CryptoHDKey, ETHSignature } from '@keystonehq/bc-ur-registry-eth';
import { MetaMaskKeyring as QRKeyring } from '@keystonehq/metamask-airgapped-keyring';
import { ControllerMessenger } from '@metamask/base-controller';
import { isValidHexAddress } from '@metamask/controller-utils';
import { keyringBuilderFactory } from '@metamask/eth-keyring-controller';
import {
normalize,
Expand All @@ -12,20 +11,17 @@ import {
SignTypedDataVersion,
} from '@metamask/eth-sig-util';
import { wordlist } from '@metamask/scure-bip39/dist/wordlists/english';
import { isValidHexAddress, type Hex } from '@metamask/utils';
import { bufferToHex } from 'ethereumjs-util';
import * as sinon from 'sinon';
import * as uuid from 'uuid';
import { isValidHexAddress, type Hex } from '@metamask/utils';
import { keyringBuilderFactory } from '@metamask/eth-keyring-controller';
import { wordlist } from '@metamask/scure-bip39/dist/wordlists/english';
import { ControllerMessenger } from '@metamask/base-controller';
import MockEncryptor, { mockKey } from '../tests/mocks/mockEncryptor';

import {
KeyringControllerEvents,
KeyringControllerMessenger,
KeyringControllerState,
KeyringControllerOptions,
KeyringControllerActions,
type KeyringControllerEvents,
type KeyringControllerMessenger,
type KeyringControllerState,
type KeyringControllerOptions,
type KeyringControllerActions,
assertHasUint8ArrayMnemonic,
assertIsQRKeyring,
} from './KeyringController';
Expand Down
26 changes: 13 additions & 13 deletions packages/keyring-controller/src/KeyringController.ts
Original file line number Diff line number Diff line change
@@ -1,24 +1,20 @@
import type { TxData, TypedTransaction } from '@ethereumjs/tx';
import {
MetaMaskKeyring as QRKeyring,
type IKeyringState as IQRKeyringState,
} from '@keystonehq/metamask-airgapped-keyring';
import type { RestrictedControllerMessenger } from '@metamask/base-controller';
import { BaseControllerV2 } from '@metamask/base-controller';
import { KeyringController as EthKeyringController } from '@metamask/eth-keyring-controller';
import {
normalize as normalizeAddress,
signTypedData,
} from '@metamask/eth-sig-util';
import type {
PersonalMessageParams,
TypedMessageParams,
} from '@metamask/message-manager';
import type { PreferencesController } from '@metamask/preferences-controller';
import { Mutex } from 'async-mutex';
import {
addHexPrefix,
bufferToHex,
isValidPrivate,
toBuffer,
stripHexPrefix,
getBinarySize,
} from 'ethereumjs-util';
import {
assertIsStrictHexString,
hasProperty,
Expand All @@ -28,13 +24,17 @@ import {
type Json,
type Bytes,
} from '@metamask/utils';
import { Mutex } from 'async-mutex';
import {
normalize as normalizeAddress,
signTypedData,
} from '@metamask/eth-sig-util';
addHexPrefix,
bufferToHex,
isValidPrivate,
toBuffer,
stripHexPrefix,
getBinarySize,
} from 'ethereumjs-util';
import Wallet, { thirdparty as importers } from 'ethereumjs-wallet';
import type { Patch } from 'immer';
import type { TxData, TypedTransaction } from '@ethereumjs/tx';

const name = 'KeyringController';

Expand Down

0 comments on commit 13a2ec7

Please sign in to comment.