Skip to content

[BUG] <[BUG] <node -v v24.15.0 For Error HH501:Couldn't download compiler version 0.8.17+commit.WARNING: You are currently using Node.js v24.15.0, which is not supported by Hardhat.>> #9458

@AutomaticToucan150

Description

@AutomaticToucan150

Is there an existing issue for this?

  • I have searched the existing issues

This issue exists in the latest npm version

  • I am using the latest npm

Current Behavior

repair

Find the Root.prototype.resolveAll function again at the bottom of the file, delete that function block, and replace it precisely with the following clean structure:

/**
 * @override
 */
Root.prototype.resolveAll = function resolveAll() {
    if (!this._needsRecursiveResolve) return this;

    if (this.deferred.length) {
        this.deferred = [];
    }
    return Namespace.prototype.resolveAll.call(this);
};

Code Change Steps (Using toBeHex + getBytes) Make sure at the top of the proto.ts file

   cumulativeRewardAmounts: cumulativeRewardAmounts.map(toBeArray)

use

 const reward = {
    recipient: getBytes(recipient),
    tokenAddresses: tokenAddresses.map((addr) => getBytes(addr)),
    cumulativeRewardAmounts: cumulativeRewardAmounts.map((amt) => {
      const hex = BigInt(amt.toString()).toString(16);
      return Buffer.from(hex.length % 2 === 0 ? hex : '0' + hex, 'hex');
    })
  };

Expected Behavior

No response

Steps To Reproduce

  1. In this environment...
  2. With this config...
  3. Run '...'
  4. See error...

Environment

  • npm:
  • Node.js:
  • OS Name:
  • System Model Name:
  • npm config:
; copy and paste output from `npm config ls` here

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions