This repository has been archived by the owner on Feb 26, 2024. It is now read-only.
eth_increaseTime breaks subsequent contract calls #2653
Labels
Docs
error better
issue indicates improvement to error messaging
good first issue
help wanted
priority4 📋
truffle test
https://gitter.im/ConsenSys/truffle?at=5de5c3d91659720ca8eb0c4c
Issue
I'm seeing the failure reported here: https://ethereum.stackexchange.com/questions/15101/how-to-use-the-testrpc-evm-increasetime-parameter-from-truffle-console#comment89683_21515
Namely, if I use eth_increaseTime, then invoke a contract, I get Uncaught TypeError: callback is not a function.
There's a test case here: https://github.com/coventry/white_elephant/blob/failing-eth_increaseTime/test/white_elephant_test.js#L117
Remove line 117, and the test passes. Remove lines 115-116, and I get a proper revert from the contract. Only with the two lines together do I get the above error.
Steps to Reproduce
Clone the above
white_elephant
repo, install truffle, runtruffle test
. Fails withIt's unclear which callback this error is referring to.
Expected Behavior
Revert on the contract transaction on line 117 of
white_elephant_test.js
.Actual Results
See above.
Environment
truffle version
):node --version
): 10.17.0npm --version
): 6.10.3The text was updated successfully, but these errors were encountered: