(node:6639) UnhandledPromiseRejectionWarning: #
(node:6639) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:6639) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
I get this error, after I install discovery and I run discovery start
I fixed the issue, it wasnât with node or docker, I was following the steps given in installation of discovery-cli where you have to install rust, there is an issue with their command, the rust command they have given is wrong, discovery doesnât start without rustup.
I figured it out the hard way, I have made a pull request to the docs, so that otherâs donât have the same issue
Failed to compile.
./src/utils/getEnigmaInit.js
Module not found: Canât resolve ââŚ/build/enigma_contracts/EnigmaSimulation.jsonâ in â/home/amod/enigma-millionaires-problem/client/src/utilsâ
If the install step worked, truffle should be installed too, please confirm with truffle version
When truffle compiles the contracts, it will output to the configured BUILD_CONTRACTS_PATH, which in your case perhaps wrongly starts with ââŚâ so check if thatâs correct too. Itâs configured in the .env file.
You can also type discovery compile and check if the contracts are compiled and output there as expected.
discovery compile worked fine with no errors, I typed truffle version and I got
Truffle v5.1.26 (core: 5.1.26)
Solidity v0.5.16 (solc-js)
Node v10.20.1
Web3.js v1.2.1
This as my output.
Very strange I just did the whole thing again after deleting the folder and it worked, I still donât know how I managed to get it working, are you a core Enigma developer?
Glad you got it working! I think itâs because you ran with a faulty installation to start with, that can result in some files not being generated.
No Iâm not on the team, I just try to help out here and there as part of the Enigma Collective.
The team is working heads down to bring secret contracts to the new Enigma blockchain, for now you can run smart contracts.
So in the meantime weâve started this contracts guide to get ready for secret contracts, which wonât be radically different.
If youâre keen, please check it out and let us know what you think.