Uniswap / v3-staker

Canonical liquidity mining contract for Uniswap V3
https://uniswap.org
GNU General Public License v3.0
355 stars 202 forks source link

yarn test error on v1.0.2 tag #236

Closed AlexiaChen closed 2 years ago

AlexiaChen commented 2 years ago

stack trace :

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.
AlexiaChen commented 2 years ago

Fixed the issue from https://stackoverflow.com/questions/69659558/error-hh604-error-running-json-rpc-server-error0308010cdigital-envelope-rout