Skip to content

Commit

Permalink
Merge pull request #5478 from NomicFoundation/add-debug-logs-provider…
Browse files Browse the repository at this point in the history
…-creation

Add debug logs for provider creation
  • Loading branch information
alcuadrado authored Jul 3, 2024
2 parents 9236590 + f6ddc92 commit 0826378
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/fuzzy-mangos-behave.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"hardhat": patch
---

Add `debug` logs to Hardhat Network initialization process.
Original file line number Diff line number Diff line change
Expand Up @@ -619,11 +619,17 @@ export async function createHardhatNetworkProvider(
loggerConfig: LoggerConfig,
artifacts?: Artifacts
): Promise<EIP1193Provider> {
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(
Expand Down

0 comments on commit 0826378

Please sign in to comment.