openlawteam / tribute-contracts

A new modular DAO framework, inspired by the Moloch smart contracts
https://tributedao.com
MIT License
295 stars 109 forks source link

Error: error:0308010C:digital envelope routines::unsupported #558

Open SaitoAsahi opened 2 years ago

SaitoAsahi commented 2 years ago

How to fix my error?

I got an error pasted below. I was trying to deploy DAO template app on rinkeby test network. I completed the steps on the tutorial of colony sdk document. How can I fix it?

Considered reason the error happened to me

it is said on the document that when we deploy the DAO on the test-net, 2 ETH in the wallet of founder would be enough. How ever, I'm not rich enough for having that amount of ETH and thought for deploying test-net, I don't need to have real ETH in my wallet. Instead of real ETH, I prepared 20 LINK and 0.2 test ETH in my wallet. Do I really need to have real ETH in my wallet?

Error Discription:

npm run deploy rinkeby

tribute-contracts@2.4.0 deploy scripts/deploy.sh

[arg1] Network: rinkeby Deployment started at 2022-08-16T21:33:31.561Z Deploying tribute-contracts@2.4.0 to rinkeby network 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 (/Users/macuser/Desktop/tribute-contracts/node_modules/ethereum-cryptography/vendor/hdkey-without-crypto.js:249:21) at HDKey.set (/Users/macuser/Desktop/tribute-contracts/node_modules/ethereum-cryptography/vendor/hdkey-without-crypto.js:50:24) at Function.HDKey.fromMasterSeed (/Users/macuser/Desktop/tribute-contracts/node_modules/ethereum-cryptography/vendor/hdkey-without-crypto.js:194:20) at deriveKeyFromMnemonicAndPath (/Users/macuser/Desktop/tribute-contracts/node_modules/hardhat/src/internal/util/keys-derivation.ts:21:27) at derivePrivateKeys (/Users/macuser/Desktop/tribute-contracts/node_modules/hardhat/src/internal/core/providers/util.ts:29:52) at new HDWalletProvider (/Users/macuser/Desktop/tribute-contracts/node_modules/hardhat/src/internal/core/providers/accounts.ts:311:42) at applyProviderWrappers (/Users/macuser/Desktop/tribute-contracts/node_modules/hardhat/src/internal/core/providers/construction.ts:188:18) at createProvider (/Users/macuser/Desktop/tribute-contracts/node_modules/hardhat/src/internal/core/providers/construction.ts:124:27) { opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ], library: 'digital envelope routines', reason: 'unsupported', code: 'ERR_OSSL_EVP_UNSUPPORTED' }

mthurston commented 1 year ago

Hi @SaitoAsahi, what version of node are you running? IIRC node required me to use version 14.