Skip to content

Commit d144d83

Browse files
authored
chore: apply suggestions from code review
1 parent 6771f00 commit d144d83

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.changeset/shaggy-bags-work.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
"hardhat": patch
33
---
44

5-
Do not send `http_setLedgerOutputEnabled` messages if they reacht the HTTP Provider to prevent unwanted warnings in the local hardhat node logs
5+
Do not send `http_setLedgerOutputEnabled` messages beyond the HTTP Provider to prevent unwanted warnings in the logs of the local hardhat node

packages/hardhat-core/src/internal/core/providers/http.ts

+2
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,8 @@ export class HttpProvider extends EventEmitter implements EIP1193Provider {
8686
}
8787

8888
public async request(args: RequestArguments): Promise<unknown> {
89+
// This is a temporary fix to an issue with noisy warnings in the logs
90+
// of a local node (#5406). This will be fixed in the next major release.
8991
if (args.method === "hardhat_setLedgerOutputEnabled") {
9092
const error = new ProviderError(
9193
"hardhat_setLedgerOutputEnabled - Method not supported",

0 commit comments

Comments
 (0)