Comparing version 2.22.8 to 2.22.9
@@ -81,2 +81,9 @@ "use strict"; | ||
async request(args) { | ||
// This is a temporary fix to an issue with noisy warnings in the logs | ||
// of a local node (#5406). This will be fixed in the next major release. | ||
if (args.method === "hardhat_setLedgerOutputEnabled") { | ||
const error = new errors_2.ProviderError("hardhat_setLedgerOutputEnabled - Method not supported", -32004); | ||
// eslint-disable-next-line @nomicfoundation/hardhat-internal-rules/only-hardhat-error | ||
throw error; | ||
} | ||
const jsonRpcRequest = this._getJsonRpcRequest(args.method, args.params); | ||
@@ -83,0 +90,0 @@ const jsonRpcResponse = await this._fetchJsonRpcResponse(jsonRpcRequest); |
{ | ||
"name": "hardhat", | ||
"version": "2.22.8", | ||
"version": "2.22.9", | ||
"author": "Nomic Labs LLC", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -89,2 +89,13 @@ import type * as Undici from "undici"; | ||
public async request(args: RequestArguments): Promise<unknown> { | ||
// This is a temporary fix to an issue with noisy warnings in the logs | ||
// of a local node (#5406). This will be fixed in the next major release. | ||
if (args.method === "hardhat_setLedgerOutputEnabled") { | ||
const error = new ProviderError( | ||
"hardhat_setLedgerOutputEnabled - Method not supported", | ||
-32004 | ||
); | ||
// eslint-disable-next-line @nomicfoundation/hardhat-internal-rules/only-hardhat-error | ||
throw error; | ||
} | ||
const jsonRpcRequest = this._getJsonRpcRequest( | ||
@@ -91,0 +102,0 @@ args.method, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3100138
56831