Skip to content

Commit

Permalink
refactor(keyring-eth-hd): fix new eslint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ccharly committed Sep 18, 2024
1 parent 65351c4 commit 371fbf7
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 19 deletions.
10 changes: 5 additions & 5 deletions packages/keyring-eth-hd/index.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,10 @@
const { HDKey } = require('ethereum-cryptography/hdkey');
const { keccak256 } = require('ethereum-cryptography/keccak');
const { bytesToHex } = require('ethereum-cryptography/utils');
const {
privateToPublic,
publicToAddress,
ecsign,
arrToBufArr,
bufferToHex,
} = require('@ethereumjs/util');
const bip39 = require('@metamask/scure-bip39');
const { wordlist } = require('@metamask/scure-bip39/dist/wordlists/english');
const {
concatSig,
decrypt,
Expand All @@ -19,7 +14,12 @@ const {
signTypedData,
SignTypedDataVersion,
} = require('@metamask/eth-sig-util');
const bip39 = require('@metamask/scure-bip39');
const { wordlist } = require('@metamask/scure-bip39/dist/wordlists/english');
const { assertIsHexString, remove0x } = require('@metamask/utils');
const { HDKey } = require('ethereum-cryptography/hdkey');
const { keccak256 } = require('ethereum-cryptography/keccak');
const { bytesToHex } = require('ethereum-cryptography/utils');

// Options:
const hdPathString = `m/44'/60'/0'/0`;
Expand Down
28 changes: 14 additions & 14 deletions packages/keyring-eth-hd/test/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
const {
TransactionFactory,
Transaction: EthereumTx,
} = require('@ethereumjs/tx');
const {
isValidAddress,
bufferToHex,
toBuffer,
ecrecover,
pubToAddress,
} = require('@ethereumjs/util');
const oldMMForkBIP39 = require('@metamask/bip39');
const OldHdKeyring = require('@metamask/eth-hd-keyring');
const {
normalize,
personalSign,
Expand All @@ -8,21 +21,8 @@ const {
encrypt,
} = require('@metamask/eth-sig-util');
const { wordlist } = require('@metamask/scure-bip39/dist/wordlists/english');
const oldMMForkBIP39 = require('@metamask/bip39');
const {
isValidAddress,
bufferToHex,
toBuffer,
ecrecover,
pubToAddress,
} = require('@ethereumjs/util');
const {
TransactionFactory,
Transaction: EthereumTx,
} = require('@ethereumjs/tx');

const OldHdKeyring = require('@metamask/eth-hd-keyring');
const { keccak256 } = require('ethereum-cryptography/keccak');

const HdKeyring = require('..');

// Sample account:
Expand Down

0 comments on commit 371fbf7

Please sign in to comment.