Skip to content

Commit 371fbf7

Browse files
committed
refactor(keyring-eth-hd): fix new eslint errors
1 parent 65351c4 commit 371fbf7

File tree

2 files changed

+19
-19
lines changed

2 files changed

+19
-19
lines changed

packages/keyring-eth-hd/index.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,10 @@
1-
const { HDKey } = require('ethereum-cryptography/hdkey');
2-
const { keccak256 } = require('ethereum-cryptography/keccak');
3-
const { bytesToHex } = require('ethereum-cryptography/utils');
41
const {
52
privateToPublic,
63
publicToAddress,
74
ecsign,
85
arrToBufArr,
96
bufferToHex,
107
} = require('@ethereumjs/util');
11-
const bip39 = require('@metamask/scure-bip39');
12-
const { wordlist } = require('@metamask/scure-bip39/dist/wordlists/english');
138
const {
149
concatSig,
1510
decrypt,
@@ -19,7 +14,12 @@ const {
1914
signTypedData,
2015
SignTypedDataVersion,
2116
} = require('@metamask/eth-sig-util');
17+
const bip39 = require('@metamask/scure-bip39');
18+
const { wordlist } = require('@metamask/scure-bip39/dist/wordlists/english');
2219
const { assertIsHexString, remove0x } = require('@metamask/utils');
20+
const { HDKey } = require('ethereum-cryptography/hdkey');
21+
const { keccak256 } = require('ethereum-cryptography/keccak');
22+
const { bytesToHex } = require('ethereum-cryptography/utils');
2323

2424
// Options:
2525
const hdPathString = `m/44'/60'/0'/0`;

packages/keyring-eth-hd/test/index.js

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
const {
2+
TransactionFactory,
3+
Transaction: EthereumTx,
4+
} = require('@ethereumjs/tx');
5+
const {
6+
isValidAddress,
7+
bufferToHex,
8+
toBuffer,
9+
ecrecover,
10+
pubToAddress,
11+
} = require('@ethereumjs/util');
12+
const oldMMForkBIP39 = require('@metamask/bip39');
13+
const OldHdKeyring = require('@metamask/eth-hd-keyring');
114
const {
215
normalize,
316
personalSign,
@@ -8,21 +21,8 @@ const {
821
encrypt,
922
} = require('@metamask/eth-sig-util');
1023
const { wordlist } = require('@metamask/scure-bip39/dist/wordlists/english');
11-
const oldMMForkBIP39 = require('@metamask/bip39');
12-
const {
13-
isValidAddress,
14-
bufferToHex,
15-
toBuffer,
16-
ecrecover,
17-
pubToAddress,
18-
} = require('@ethereumjs/util');
19-
const {
20-
TransactionFactory,
21-
Transaction: EthereumTx,
22-
} = require('@ethereumjs/tx');
23-
24-
const OldHdKeyring = require('@metamask/eth-hd-keyring');
2524
const { keccak256 } = require('ethereum-cryptography/keccak');
25+
2626
const HdKeyring = require('..');
2727

2828
// Sample account:

0 commit comments

Comments
 (0)