skiral / gilgamesh-token-contract

Smart contracts for Gilgamesh Platform Token Sale
https://gilgameshplatform.com
Other
18 stars 10 forks source link

Error after running truffle test #2

Open MRANASSPRO opened 6 years ago

MRANASSPRO commented 6 years ago

I was trying to run this project locally, I followed all the steps mentionned in README.md, but after running truffle test, I got this output :

 1) Contract: TestGilgameshTokenSale "before each" hook: before test:
     Uncaught AssertionError: expected promise to be fulfilled but it was rejected with 'Error: Error: VM Exception while processing transaction: revert'

Any cause, solution?

Thank you.

skiral commented 6 years ago

You would need to run testrpc in the background before running the unit tests.

MRANASSPRO commented 6 years ago

Thanks for the answer, I run testrpc in the background, but after trying test in the truffle console, I got this error:

/home/mranasspro/.nvm/versions/node/v9.11.1/lib/node_modules/truffle/node_modules/mocha/lib/runnable.js:301
    fn(err);
    ^
TypeError: Cannot set property 'state' of undefined
    at /home/mranasspro/.nvm/versions/node/v9.11.1/lib/node_modules/truffle/node_modules/mocha/lib/runner.js:589:20
    at done (/home/mranasspro/.nvm/versions/node/v9.11.1/lib/node_modules/truffle/node_modules/mocha/lib/runnable.js:301:5)
    at /home/mranasspro/.nvm/versions/node/v9.11.1/lib/node_modules/truffle/node_modules/mocha/lib/runnable.js:359:11
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:182:7)
skiral commented 6 years ago

Can you switch to Node V8 and try again?

MRANASSPRO commented 6 years ago

I tried with node v8 and same problem, why not update this repo working with geth as a RPC