Skip to content

Commit

Permalink
fix: linter
Browse files Browse the repository at this point in the history
  • Loading branch information
Wodann committed Oct 6, 2023
1 parent 6b74e94 commit 72415ce
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,7 @@ import {
ethereumjsMempoolOrderToRethnetMineOrdering,
ethereumsjsHardforkToRethnetSpecId,
} from "../utils/convertToRethnet";
import {
HardforkName,
getHardforkName,
hardforkGte,
} from "../../../util/hardforks";
import { HardforkName, getHardforkName } from "../../../util/hardforks";
import { RethnetStateManager } from "../RethnetState";
import { RethnetMemPool } from "../mem-pool/rethnet";
import { makeCommon } from "../utils/makeCommon";
Expand Down Expand Up @@ -56,10 +52,10 @@ export class RethnetEthContext implements EthContextAdapter {
const hardforkActivations: Array<[bigint, SpecId]> = Array.from(
chainConfig.hardforkHistory
).map(([hardfork, blockNumber]) => {
const specId = ethereumsjsHardforkToRethnetSpecId(
getHardforkName(hardfork)
);
return [BigInt(blockNumber), specId];
return [
BigInt(blockNumber),
ethereumsjsHardforkToRethnetSpecId(getHardforkName(hardfork)),
];
});

return [BigInt(chainId), hardforkActivations];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,8 @@ import { MemPool, PendingTransaction, SpecId } from "rethnet-evm";
import { MemPoolAdapter } from "../mem-pool";
import {
ethereumjsTransactionToRethnetSignedTransaction,
ethereumsjsHardforkToRethnetSpecId,
rethnetSignedTransactionToEthereumJSTypedTransaction,
} from "../utils/convertToRethnet";
import { HardforkName } from "../../../util/hardforks";
import { RethnetStateManager } from "../RethnetState";
import { InvalidInputError } from "../../../core/providers/errors";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Common } from "@nomicfoundation/ethereumjs-common";
import { Address } from "@nomicfoundation/ethereumjs-util";
import { assertHardhatInvariant } from "../../../core/errors";
import { ConfigOptions, MineOrdering, SpecId, mineBlock } from "rethnet-evm";
import { assertHardhatInvariant } from "../../../core/errors";
import { BlockMinerAdapter, PartialMineBlockResult } from "../miner";
import {
rethnetBlockToEthereumJS,
Expand Down

0 comments on commit 72415ce

Please sign in to comment.