Skip to content

Commit 93ef787

Browse files
committed
Add debug logs for provider creation
1 parent b9227a4 commit 93ef787

File tree

1 file changed

+8
-2
lines changed
  • packages/hardhat-core/src/internal/hardhat-network/provider

1 file changed

+8
-2
lines changed

packages/hardhat-core/src/internal/hardhat-network/provider/provider.ts

+8-2
Original file line numberDiff line numberDiff line change
@@ -619,11 +619,17 @@ export async function createHardhatNetworkProvider(
619619
loggerConfig: LoggerConfig,
620620
artifacts?: Artifacts
621621
): Promise<EIP1193Provider> {
622-
return EdrProviderWrapper.create(
622+
log("Making tracing config");
623+
const tracingConfig = await makeTracingConfig(artifacts);
624+
log("Creating EDR provider");
625+
const provider = EdrProviderWrapper.create(
623626
hardhatNetworkProviderConfig,
624627
loggerConfig,
625-
await makeTracingConfig(artifacts)
628+
tracingConfig
626629
);
630+
log("EDR provider created");
631+
632+
return provider;
627633
}
628634

629635
async function makeTracingConfig(

0 commit comments

Comments
 (0)