From 93ef7872cd1a424d9a0f4f71efc662fbc3a78adc Mon Sep 17 00:00:00 2001 From: Franco Victorio Date: Wed, 3 Jul 2024 11:46:05 +0200 Subject: [PATCH 1/2] Add debug logs for provider creation --- .../src/internal/hardhat-network/provider/provider.ts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/packages/hardhat-core/src/internal/hardhat-network/provider/provider.ts b/packages/hardhat-core/src/internal/hardhat-network/provider/provider.ts index 6496053570..0df36f90a1 100644 --- a/packages/hardhat-core/src/internal/hardhat-network/provider/provider.ts +++ b/packages/hardhat-core/src/internal/hardhat-network/provider/provider.ts @@ -619,11 +619,17 @@ export async function createHardhatNetworkProvider( loggerConfig: LoggerConfig, artifacts?: Artifacts ): Promise { - return EdrProviderWrapper.create( + log("Making tracing config"); + const tracingConfig = await makeTracingConfig(artifacts); + log("Creating EDR provider"); + const provider = EdrProviderWrapper.create( hardhatNetworkProviderConfig, loggerConfig, - await makeTracingConfig(artifacts) + tracingConfig ); + log("EDR provider created"); + + return provider; } async function makeTracingConfig( From f6ddc92e46c3031367c4cb7c549964169ccfb9c3 Mon Sep 17 00:00:00 2001 From: Patricio Palladino Date: Wed, 3 Jul 2024 11:34:10 -0300 Subject: [PATCH 2/2] Create fuzzy-mangos-behave.md --- .changeset/fuzzy-mangos-behave.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/fuzzy-mangos-behave.md diff --git a/.changeset/fuzzy-mangos-behave.md b/.changeset/fuzzy-mangos-behave.md new file mode 100644 index 0000000000..ea406edfdc --- /dev/null +++ b/.changeset/fuzzy-mangos-behave.md @@ -0,0 +1,5 @@ +--- +"hardhat": patch +--- + +Add `debug` logs to Hardhat Network initialization process.