Socket
Socket
Sign inDemoInstall

hardhat

Package Overview
Dependencies
Maintainers
6
Versions
159
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hardhat - npm Package Compare versions

Comparing version 2.22.8 to 2.22.9

7

internal/core/providers/http.js

@@ -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);

2

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc