Skip to content

Commit

Permalink
fix linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ScottyPoi committed Aug 13, 2024
1 parent 8e29983 commit af630f1
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
3 changes: 2 additions & 1 deletion packages/block/test/clique.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@ import { Common, Goerli, Hardfork } from '@ethereumjs/common'
import { Address, createZeroAddress, hexToBytes } from '@ethereumjs/util'
import { assert, describe, it } from 'vitest'

import { createBlockHeader, createSealedCliqueBlockHeader } from '../src/index.js'
import {
cliqueEpochTransitionSigners,
cliqueExtraSeal,
cliqueExtraVanity,
cliqueIsEpochTransition,
cliqueSigner,
cliqueVerifySignature,
createBlockHeader,
createSealedCliqueBlockHeader,
} from '../src/index.js'

describe('[Header]: Clique PoA Functionality', () => {
Expand Down
3 changes: 1 addition & 2 deletions packages/block/test/difficulty.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ import * as difficultyEIP2384_random_to20M from '../../ethereum-tests/Difficulty
import * as difficultyFrontier from '../../ethereum-tests/DifficultyTests/dfFrontier/difficultyFrontier.json'
import * as difficultyGrayGlacier from '../../ethereum-tests/DifficultyTests/dfGrayGlacier/difficultyGrayGlacier.json'
import * as difficultyHomestead from '../../ethereum-tests/DifficultyTests/dfHomestead/difficultyHomestead.json'
import { createBlock } from '../src/index.js'
import { type Block, ethashCanonicalDifficulty } from '../src/index.js'
import { type Block, createBlock, ethashCanonicalDifficulty } from '../src/index.js'

function runDifficultyTests(test: any, parentBlock: Block, block: Block, msg: string) {
const dif = ethashCanonicalDifficulty(block, parentBlock)
Expand Down
2 changes: 1 addition & 1 deletion packages/block/test/eip4844block.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import {
import { loadKZG } from 'kzg-wasm'
import { assert, beforeAll, describe, it } from 'vitest'

import { createBlock, createBlockHeader } from '../src/index.js'
import { fakeExponential, getNumBlobs } from '../src/helpers.js'
import { createBlock, createBlockHeader } from '../src/index.js'
import { paramsBlock } from '../src/params.js'

import gethGenesis from './testdata/4844-hardfork.json'
Expand Down
4 changes: 2 additions & 2 deletions packages/block/test/eip7685block.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ import {
} from '@ethereumjs/util'
import { assert, describe, expect, it } from 'vitest'

import { genRequestsTrieRoot } from '../src/helpers.js'
import {
Block,
createBlock,
createBlockFromRPC,
createBlockFromValuesArray,
createBlockHeader,
} from '../src/index.js'
import { genRequestsTrieRoot } from '../src/helpers.js'
import { Block } from '../src/index.js'

import type { CLRequest, CLRequestType } from '@ethereumjs/util'

Expand Down
4 changes: 2 additions & 2 deletions packages/block/test/header.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,19 @@ import {
import { assert, describe, it } from 'vitest'

import {
Block,
createBlock,
createBlockFromRLPSerializedBlock,
createBlockHeader,
createBlockHeaderFromRLP,
createBlockHeaderFromValuesArray,
} from '../src/index.js'
import { Block } from '../src/index.js'

import * as testData from './testdata/bcBlockGasLimitTest.json'
import * as blocksGoerli from './testdata/blocks_goerli.json'
import * as blocksMainnet from './testdata/blocks_mainnet.json'

import type { BlockHeader } from '../src/header.js'
import type { BlockHeader } from '../src/index.js'
import type { CliqueConfig } from '@ethereumjs/common'
import type { PrefixedHexString } from '@ethereumjs/util'

Expand Down
2 changes: 1 addition & 1 deletion packages/common/test/utils.spec.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { assert, describe, it } from 'vitest'

import { Mainnet } from '../src/chains.js'
import { createCommonFromGethGenesis } from '../src/index.js'
import { Hardfork } from '../src/enums.js'
import { createCommonFromGethGenesis } from '../src/index.js'
import { parseGethGenesis } from '../src/utils.js'

import * as invalidSpuriousDragonJSON from './data/geth-genesis/invalid-spurious-dragon.json'
Expand Down

0 comments on commit af630f1

Please sign in to comment.