Skip to content

Commit dbe99af

Browse files
committed
chore: do not send hardhat_setLedgerOutputEnabled over http
1 parent 83721d9 commit dbe99af

File tree

1 file changed

+9
-0
lines changed
  • packages/hardhat-core/src/internal/core/providers

1 file changed

+9
-0
lines changed

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

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

8888
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+
8998
const jsonRpcRequest = this._getJsonRpcRequest(
9099
args.method,
91100
args.params as any[]

0 commit comments

Comments
 (0)