Gas Estimation: tests dont work with ganache-cli@6.4.2 and later
See original GitHub issueRunning any version of ganache-cli >=6.4.2 (Gas Exactimation) breaks tests on this repository. In reviewing the ganache-cli@6.4.2 changelog, I read to submit an issue here if an OOG error is experienced.
Expected Behavior
By following the “Test” section of the README, I expect all tests to run successfully (with npm run test). This is what happens prior to ganache-cli@6.4.2.
To run ganache-cli, I am not using the npm script, but rather using ganache-cli -p 8545 -m "asset member awake bring mosquito lab sustain muscle elephant equip someone obvious" -a 100
Current Behavior
error=Error: Returned error: VM Exception while processing transaction: out of gas
ganache-cli versions 6.4.2, 6.4.3, and 6.4.4 produce the above error when running npm run test.
Steps to Reproduce (for bugs)
# Install Ganache-cli globally:
npm install --global ganache-cli
# Install Truffle globally:
npm install --global truffle@v4.1.12
# Install local node dependencies:
npm install
# Compile contracts
npm run compile
# Run ganache-cli
ganache-cli -p 8545 -m "asset member awake bring mosquito lab sustain muscle elephant equip someone obvious" -a 100
# Run contracts test suite
npm run test
Context
This was discovered when running tests on this repository.
Your Environment
- truffle@4.1.12
- solc@0.5.5+commit.47a71e8f.Darwin.appleclang
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (2 by maintainers)

Top Related StackOverflow Question
That makes sense. Thank you.
Great timing. This beta version works perfectly. I’ll go ahead and close this issue.