From 5f1a5828040366df56680ac97f6215dd43b08b86 Mon Sep 17 00:00:00 2001 From: Alex Date: Wed, 4 Oct 2023 15:44:49 -0500 Subject: [PATCH] lint --- jest.config.js | 4 ++-- src/ledger-keyring.test.ts | 8 +++----- src/ledger-keyring.ts | 4 ++-- 3 files changed, 7 insertions(+), 9 deletions(-) diff --git a/jest.config.js b/jest.config.js index 178632c7..6fc5cddf 100644 --- a/jest.config.js +++ b/jest.config.js @@ -43,8 +43,8 @@ module.exports = { global: { branches: 65.42, functions: 88.57, - lines: 81.57, - statements: 81.49, + lines: 81.63, + statements: 81.55, }, }, diff --git a/src/ledger-keyring.test.ts b/src/ledger-keyring.test.ts index f8789f7a..9bfd4058 100644 --- a/src/ledger-keyring.test.ts +++ b/src/ledger-keyring.test.ts @@ -1,9 +1,9 @@ import { Common, Chain, Hardfork } from '@ethereumjs/common'; +import { RLP } from '@ethereumjs/rlp'; import { TransactionFactory } from '@ethereumjs/tx'; +import * as ethUtil from '@ethereumjs/util'; import sigUtil from 'eth-sig-util'; import EthereumTx from 'ethereumjs-tx'; -import * as ethUtil from '@ethereumjs/util'; -import {RLP} from '@ethereumjs/rlp' import HDKey from 'hdkey'; import { LedgerBridge } from './ledger-bridge'; @@ -537,9 +537,7 @@ describe('LedgerKeyring', function () { .mockImplementation(async (params) => { expect(params).toStrictEqual({ hdPath: "m/44'/60'/0'/0", - tx: RLP - .encode(newFakeTx.getMessageToSign(false)) - .toString(), + tx: RLP.encode(newFakeTx.getMessageToSign(false)).toString(), }); return expectedRSV; }); diff --git a/src/ledger-keyring.ts b/src/ledger-keyring.ts index 444d22a3..24399214 100644 --- a/src/ledger-keyring.ts +++ b/src/ledger-keyring.ts @@ -1,10 +1,10 @@ +import { RLP } from '@ethereumjs/rlp'; import { TransactionFactory, TxData, TypedTransaction } from '@ethereumjs/tx'; +import * as ethUtil from '@ethereumjs/util'; // eslint-disable-next-line import/no-nodejs-modules import { Buffer } from 'buffer'; import * as sigUtil from 'eth-sig-util'; import type OldEthJsTransaction from 'ethereumjs-tx'; -import * as ethUtil from '@ethereumjs/util'; -import { RLP } from '@ethereumjs/rlp'; // eslint-disable-next-line import/no-nodejs-modules import { EventEmitter } from 'events'; import HDKey from 'hdkey';