I see that is it is possible to define the timestamp of the next block (see here) in this way:
await network.provider.send("evm_setNextBlockTimestamp", [1625097600]);
await network.provider.send("evm_mine");
but what about setting the block number?
My contracts use block.number
to perform operations and I need to verify that they act correctly by mining a block with a greater height.
evm_mine
method, but if you want to mine multiple blocks you'll need to call it as many times as you need. But this is not practical if you want to advance thousands of blocks. We are going to add a new method that adds support for this.