mathxh@MathxH:~/metablock-projects/v3-staker$ yarn test
yarn run v1.22.15
$ hardhat test
No need to generate any newer typings.
An unexpected error occurred:
Error: error:0308010C:digital envelope routines::unsupported
at new Hash (node:internal/crypto/hash:71:19)
at Object.createHash (node:crypto:133:10)
at hash160 (/home/mathxh/metablock-projects/v3-staker/node_modules/ethereum-cryptography/vendor/hdkey-without-crypto.js:249:21)
at HDKey.set (/home/mathxh/metablock-projects/v3-staker/node_modules/ethereum-cryptography/vendor/hdkey-without-crypto.js:50:24)
at Function.HDKey.fromMasterSeed (/home/mathxh/metablock-projects/v3-staker/node_modules/ethereum-cryptography/vendor/hdkey-without-crypto.js:194:20)
at Object.deriveKeyFromMnemonicAndPath (/home/mathxh/metablock-projects/v3-staker/node_modules/hardhat/src/internal/util/keys-derivation.ts:21:27)
at derivePrivateKeys (/home/mathxh/metablock-projects/v3-staker/node_modules/hardhat/src/internal/core/providers/util.ts:29:24)
at Object.normalizeHardhatNetworkAccountsConfig (/home/mathxh/metablock-projects/v3-staker/node_modules/hardhat/src/internal/core/providers/util.ts:56:10)
at Object.createProvider (/home/mathxh/metablock-projects/v3-staker/node_modules/hardhat/src/internal/core/providers/construction.ts:75:22)
at /home/mathxh/metablock-projects/v3-staker/node_modules/hardhat/src/internal/core/runtime-environment.ts:80:14 {
opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ],
library: 'digital envelope routines',
reason: 'unsupported',
code: 'ERR_OSSL_EVP_UNSUPPORTED'
}
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
stack trace :