Skip to content

Functions testnet server with the hardhat node is started and finished with the error immediately. #226

@nnseva

Description

@nnseva

Issue

Functions testnet server with the hardhat node is started and finished with the error immediately.

Description

The below is a full script of my actions from the console

seva@Victus-16:~/OGOO/.local_functions_testnet$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 24.04.3 LTS
Release:        24.04
Codename:       noble
seva@Victus-16:~/OGOO/.local_functions_testnet$ node --version
v20.19.5
seva@Victus-16:~/OGOO/.local_functions_testnet$ deno --version
deno 2.5.1 (stable, release, x86_64-unknown-linux-gnu)
v8 14.0.365.4-rusty
typescript 5.9.2
seva@Victus-16:~/OGOO/.local_functions_testnet$ git clone org-25111032@github.com:smartcontractkit/functions-hardhat-starter-kit.git
Cloning into 'functions-hardhat-starter-kit'...
remote: Enumerating objects: 3946, done.
remote: Counting objects: 100% (1056/1056), done.
remote: Compressing objects: 100% (212/212), done.
remote: Total 3946 (delta 971), reused 844 (delta 844), pack-reused 2890 (from 2)
Receiving objects: 100% (3946/3946), 2.89 MiB | 5.40 MiB/s, done.
Resolving deltas: 100% (3058/3058), done.
seva@Victus-16:~/OGOO/.local_functions_testnet$ cd functions-hardhat-starter-kit/
seva@Victus-16:~/OGOO/.local_functions_testnet/functions-hardhat-starter-kit$ npm install
npm warn skipping integrity check for git dependency ssh://git@github.com/matter-labs/era-contracts.git
npm warn deprecated @types/minimatch@6.0.0: This is a stub types definition. minimatch provides its own type definitions, so you do not need this installed.
npm warn deprecated inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
npm warn deprecated rimraf@2.7.1: Rimraf versions prior to v4 are no longer supported
npm warn deprecated glob@8.1.0: Glob versions prior to v9 are no longer supported
npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported
npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported
npm warn deprecated glob@5.0.15: Glob versions prior to v9 are no longer supported
npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported
npm warn deprecated glob@7.1.7: Glob versions prior to v9 are no longer supported
npm warn deprecated @nomiclabs/hardhat-etherscan@3.1.8: The @nomiclabs/hardhat-etherscan package is deprecated, please use @nomicfoundation/hardhat-verify instead

> functions-hardhat-starter-kit@0.2.1 prepare
> husky install

husky - Git hooks installed

added 1174 packages, and audited 1204 packages in 2m

153 packages are looking for funding
  run `npm fund` for details

50 vulnerabilities (22 low, 4 moderate, 19 high, 5 critical)

To address issues that do not require attention, run:
  npm audit fix

To address all issues possible (including breaking changes), run:
  npm audit fix --force

Some issues need review, and may require choosing
a different dependency.

Run `npm audit` for details.
seva@Victus-16:~/OGOO/.local_functions_testnet/functions-hardhat-starter-kit$ npm run startLocalFunctionsTestnet

> functions-hardhat-starter-kit@0.2.1 startLocalFunctionsTestnet
> node scripts/startLocalFunctionsTestnet.js

secp256k1 unavailable, reverting to browser version
Using Functions request config file /home/seva/OGOO/.local_functions_testnet/functions-hardhat-starter-kit/Functions-request-config.js

Local Functions testnet server started on port 8545
┌──────────────────────────────────┬──────────────────────────────────────────────┐
│ (index)                          │ Values                                       │
├──────────────────────────────────┼──────────────────────────────────────────────┤
│ FunctionsRouter Contract Address │ '0x928f236c9F8A370F52e4F36c77A4F3BFAD1Bd906' │
│ DON ID                           │ 'local-functions-testnet'                    │
│ Mock LINK Token Contract Address │ '0xd3E6AB64FE6227693b541F8Bfd8A30928d205c9a' │
└──────────────────────────────────┴──────────────────────────────────────────────┘
/home/seva/OGOO/.local_functions_testnet/functions-hardhat-starter-kit/node_modules/@ethersproject/bytes/lib/index.js:9
    return !!(value.toHexString);
                    ^

TypeError: Cannot read properties of undefined (reading 'toHexString')
    at isHexable (/home/seva/OGOO/.local_functions_testnet/functions-hardhat-starter-kit/node_modules/@ethersproject/bytes/lib/index.js:9:21)
    at hexlify (/home/seva/OGOO/.local_functions_testnet/functions-hardhat-starter-kit/node_modules/@ethersproject/bytes/lib/index.js:175:9)
    at new SigningKey (/home/seva/OGOO/.local_functions_testnet/functions-hardhat-starter-kit/node_modules/@ethersproject/signing-key/lib/index.js:20:82)
    at new Wallet (/home/seva/OGOO/.local_functions_testnet/functions-hardhat-starter-kit/node_modules/@ethersproject/wallet/lib/index.js:120:36)
    at /home/seva/OGOO/.local_functions_testnet/functions-hardhat-starter-kit/scripts/startLocalFunctionsTestnet.js:30:25
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

Node.js v20.19.5

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No 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