Hi. I just upgraded discovery-cli
and ran discovery init
in a new folder, and when I run discovery migrate
it is producting this error below. Any suggestions? Thx.
Starting migrations...
======================
> Network name: 'development'
> Network id: 4447
> Block gas limit: 0x6691b7
1_initial_migration.js
======================
Deploying 'Migrations'
----------------------
> transaction hash: 0xe19463566963800a822cdf45daaabcc610699722aa9df2f2c4a6030da5440648
- Blocks: 0 Seconds: 0
> Blocks: 0 Seconds: 0
> contract address: 0x1b88Bdb8269A1aB1372459F5a4eC3663D6f5cCc4
> block number: 53
> block timestamp: 1577486071
> account: 0x90F8bf6A479f320ead074411a4B0e7944Ea8c9C1
> balance: 99.54973358
> gas used: 263741
> gas price: 20 gwei
> value sent: 0 ETH
> total cost: 0.00527482 ETH
- Saving migration to chain.
> Saving migration to chain.
> Saving artifacts
-------------------------------------
> Total cost: 0.00527482 ETH
2_deploy_contracts.js
=====================
internal/modules/cjs/loader.js:638
throw err;
^
Error: Cannot find module '/home/brendan/code/2gather/tmp/build/enigma_contracts/EnigmaSimulation.json'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)
at Function.Module._load (internal/modules/cjs/loader.js:562:25)
at Module.require (internal/modules/cjs/loader.js:690:17)
at require (internal/modules/cjs/helpers.js:25:18)
at require (/home/brendan/code/2gather/tmp/node_modules/truffle/build/cli.bundled.js:342791:18)
at /home/brendan/code/2gather/tmp/migrations/2_deploy_contracts.js:17:20
at Script.runInContext (vm.js:133:20)
at Script.runInNewContext (vm.js:139:17)
at Object.file (/home/brendan/code/2gather/tmp/node_modules/truffle/build/cli.bundled.js:342829:12)
at Migration._load (/home/brendan/code/2gather/tmp/node_modules/truffle/build/cli.bundled.js:456247:24)
at process._tickCallback (internal/process/next_tick.js:68:7)
Truffle v5.1.6 (core: 5.1.6)
Node v10.16.0
(node:14729) UnhandledPromiseRejectionWarning: Error: child exited with code 1
at ChildProcess.p.on.code (/home/brendan/.config/yarn/global/node_modules/@enigmampc/discovery-cli/src/index.js:39:21)
at ChildProcess.emit (events.js:198:13)
at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)
(node:14729) 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:14729) [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.