Skip to content

Commit 15add28

Browse files
committed
Move rpcToBlockData and rpcToTxData to test utils
1 parent 3b65643 commit 15add28

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

packages/hardhat-core/test/internal/hardhat-network/provider/baseFeePerGas.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import {
1111
import { EthereumProvider } from "../../../../src/types";
1212
import { makeForkClient } from "../../../../src/internal/hardhat-network/provider/utils/makeForkClient";
1313
import { ALCHEMY_URL } from "../../../setup";
14-
import { rpcToBlockData } from "../../../../src/internal/hardhat-network/provider/fork/rpcToBlockData";
14+
import { rpcToBlockData } from "./utils/rpcToBlockData";
1515

1616
async function getLatestBaseFeePerGas(provider: EthereumProvider) {
1717
const block = await provider.send("eth_getBlockByNumber", ["latest", false]);

packages/hardhat-core/src/internal/hardhat-network/provider/fork/rpcToBlockData.ts packages/hardhat-core/test/internal/hardhat-network/provider/utils/rpcToBlockData.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { BlockData } from "@nomicfoundation/ethereumjs-block";
22

3-
import { RpcBlockWithTransactions } from "../../../core/jsonrpc/types/output/block";
4-
3+
import { RpcBlockWithTransactions } from "../../../../../src/internal/core/jsonrpc/types/output/block";
54
import { rpcToTxData } from "./rpcToTxData";
65

76
export function rpcToBlockData(rpcBlock: RpcBlockWithTransactions): BlockData {

packages/hardhat-core/src/internal/hardhat-network/provider/fork/rpcToTxData.ts packages/hardhat-core/test/internal/hardhat-network/provider/utils/rpcToTxData.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import {
55
TxData,
66
} from "@nomicfoundation/ethereumjs-tx";
77

8-
import { RpcTransaction } from "../../../core/jsonrpc/types/output/transaction";
8+
import { RpcTransaction } from "../../../../../src/internal/core/jsonrpc/types/output/transaction";
99

1010
// the FeeMarketEIP1559TxData interface from ethereum js also has a
1111
// `gasPrice?: never | null` property, which causes a compilation

0 commit comments

Comments
 (0)