Skip to content

Commit

Permalink
Add debug logs for provider creation
Browse files Browse the repository at this point in the history
  • Loading branch information
fvictorio committed Jul 3, 2024
1 parent b9227a4 commit 93ef787
Showing 1 changed file with 8 additions and 2 deletions.
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 93ef787

Please sign in to comment.