:warning: The Truffle Suite is being sunset. For information on ongoing support, migration options and FAQs, visit the Consensys blog. Thank you for all the support over the years.
My js test case call evm_setTime to update time first ,then I check the eth_getBlockByNumber and got the time correctly updated.
But then I call a function of my contract, the block.timestamp inside the contract still the 'real' time.
My js test case call evm_setTime to update time first ,then I check the eth_getBlockByNumber and got the time correctly updated. But then I call a function of my contract, the block.timestamp inside the contract still the 'real' time.
I update the time in this way:
then I call evm_mine then check the block timestamp in this way:
The log is ok in js code. But within the contract, I got the bad block.timestamp, which is looked like not changed at all.
Any sugguestion?