All Questions
3 questions
0
votes
1
answer
203
views
How to advance blocks in a Hardhat test that uses block.timestamp?
I have this code for a Voting smart contract test:
it("Should return true if end time is less than the current timestamp", async function () {
const { votingSmartContract } = await ...
4
votes
3
answers
1k
views
Can the block number be set back in ganache?
I know about tools like ganache-time-traveler that let you advance the block number.
But is it possible to go back to a lower value?
3
votes
4
answers
3k
views
Is there any library to estimate timestamp of future block?
I am in need of a library that estimates a date or some sort of timestamp when fed with a future block number (on mainnet or any major testnet).
For instance, https://etherscan.io/block/countdown/...