Skip to content

Commit 286014a

Browse files
committed
refactor(keyring-eth-trezor): fix new eslint errors
1 parent a739b12 commit 286014a

File tree

5 files changed

+20
-18
lines changed

5 files changed

+20
-18
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
export * from './trezor-keyring';
2-
export * from './trezor-bridge';
2+
export type * from './trezor-bridge';
33
export * from './trezor-connect-bridge';

packages/keyring-eth-trezor/src/trezor-connect-bridge.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99

1010
import TrezorConnect, { DEVICE, DEVICE_EVENT } from '@trezor/connect-web';
1111

12-
import { TrezorConnectBridge } from './trezor-connect-bridge';
1312
import { TrezorBridge } from './trezor-bridge';
13+
import { TrezorConnectBridge } from './trezor-connect-bridge';
1414
import { TREZOR_CONNECT_MANIFEST } from './trezor-keyring';
1515

1616
describe('TrezorConnectBridge', function () {

packages/keyring-eth-trezor/src/trezor-connect-bridge.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import type {
88
EthereumSignTypedDataTypes,
99
EthereumSignTypedHash,
1010
} from '@trezor/connect-web';
11+
1112
import type { TrezorBridge } from './trezor-bridge';
1213

1314
export class TrezorConnectBridge implements TrezorBridge {

packages/keyring-eth-trezor/src/trezor-keyring.test.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
import * as sinon from 'sinon';
2-
import EthereumTx from 'ethereumjs-tx';
3-
import HDKey from 'hdkey';
1+
import { Common, Chain, Hardfork } from '@ethereumjs/common';
42
import {
53
TypedTransaction,
64
TransactionFactory,
75
FeeMarketEIP1559Transaction,
86
} from '@ethereumjs/tx';
9-
import { Common, Chain, Hardfork } from '@ethereumjs/common';
10-
117
import { Address } from '@ethereumjs/util';
128
import { SignTypedDataVersion } from '@metamask/eth-sig-util';
13-
import { TrezorKeyring, TREZOR_CONNECT_MANIFEST } from './trezor-keyring';
9+
import EthereumTx from 'ethereumjs-tx';
10+
import HDKey from 'hdkey';
11+
import * as sinon from 'sinon';
12+
1413
import { TrezorBridge } from './trezor-bridge';
14+
import { TrezorKeyring, TREZOR_CONNECT_MANIFEST } from './trezor-keyring';
1515

1616
const fakeAccounts = [
1717
'0xF30952A1c534CDE7bC471380065726fa8686dfB3',

packages/keyring-eth-trezor/src/trezor-keyring.ts

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,21 @@
1-
import { EventEmitter } from 'events';
2-
import * as ethUtil from '@ethereumjs/util';
3-
import HDKey from 'hdkey';
4-
import type {
5-
EthereumTransactionEIP1559,
6-
EthereumSignedTx,
7-
EthereumTransaction,
8-
} from '@trezor/connect-web';
91
import { TransactionFactory } from '@ethereumjs/tx';
102
import type { TypedTransaction, TxData } from '@ethereumjs/tx';
11-
import type OldEthJsTransaction from 'ethereumjs-tx';
12-
import { transformTypedData } from '@trezor/connect-plugin-ethereum';
3+
import * as ethUtil from '@ethereumjs/util';
134
import {
145
TypedMessage,
156
SignTypedDataVersion,
167
MessageTypes,
178
} from '@metamask/eth-sig-util';
9+
import { transformTypedData } from '@trezor/connect-plugin-ethereum';
10+
import type {
11+
EthereumTransactionEIP1559,
12+
EthereumSignedTx,
13+
EthereumTransaction,
14+
} from '@trezor/connect-web';
15+
import type OldEthJsTransaction from 'ethereumjs-tx';
16+
import { EventEmitter } from 'events';
17+
import HDKey from 'hdkey';
18+
1819
import { TrezorBridge } from './trezor-bridge';
1920

2021
const hdPathString = `m/44'/60'/0'/0`;

0 commit comments

Comments
 (0)