File tree 2 files changed +14
-0
lines changed
packages/hardhat-core/src/internal/core/providers
2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " hardhat " : patch
3
+ ---
4
+
5
+ Do not send ` http_setLedgerOutputEnabled ` messages if they reacht the HTTP Provider to prevent unwanted warnings in the local hardhat node logs
Original file line number Diff line number Diff line change @@ -86,6 +86,15 @@ export class HttpProvider extends EventEmitter implements EIP1193Provider {
86
86
}
87
87
88
88
public async request ( args : RequestArguments ) : Promise < unknown > {
89
+ if ( args . method === "hardhat_setLedgerOutputEnabled" ) {
90
+ const error = new ProviderError (
91
+ "hardhat_setLedgerOutputEnabled - Method not supported" ,
92
+ - 32004
93
+ ) ;
94
+ // eslint-disable-next-line @nomicfoundation/hardhat-internal-rules/only-hardhat-error
95
+ throw error ;
96
+ }
97
+
89
98
const jsonRpcRequest = this . _getJsonRpcRequest (
90
99
args . method ,
91
100
args . params as any [ ]
You can’t perform that action at this time.
0 commit comments