We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 83721d9 commit dbe99afCopy full SHA for dbe99af
packages/hardhat-core/src/internal/core/providers/http.ts
@@ -86,6 +86,15 @@ export class HttpProvider extends EventEmitter implements EIP1193Provider {
86
}
87
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
+
98
const jsonRpcRequest = this._getJsonRpcRequest(
99
args.method,
100
args.params as any[]
0 commit comments