Skip to content

Commit 76823a8

Browse files
committed
Rename the function that creates the HRE in core
1 parent 023b195 commit 76823a8

File tree

4 files changed

+56
-52
lines changed

4 files changed

+56
-52
lines changed

v-next/core/src/index.ts

+6-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,11 @@ import type { HardhatRuntimeEnvironment } from "./types/hre.js";
66
import { HardhatRuntimeEnvironmentImplementation } from "./internal/hre.js";
77

88
/**
9-
* Creates an instances of the Hardhat Runtime Environment.
9+
* Creates an instances of the Hardhat Runtime Environment without any of the
10+
* built-in plugins.
11+
*
12+
* To get the built-in plugins, use `createHardhatRuntimeEnvironment` from
13+
* `hardhat/hre` instead.
1014
*
1115
* @param config - The user's Hardhat configuration.
1216
* @param userProvidedGlobalOptions - The global options provided by the
@@ -15,7 +19,7 @@ import { HardhatRuntimeEnvironmentImplementation } from "./internal/hre.js";
1519
* redoing it in the CLI. Should only be used in the official CLI.
1620
* @returns The Hardhat Runtime Environment.
1721
*/
18-
export async function createHardhatRuntimeEnvironment(
22+
export async function createBaseHardhatRuntimeEnvironment(
1923
config: HardhatUserConfig,
2024
userProvidedGlobalOptions: Partial<GlobalOptions> = {},
2125
unsafeOptions?: UnsafeHardhatRuntimeEnvironmentOptions,

0 commit comments

Comments
 (0)