-
Notifications
You must be signed in to change notification settings - Fork 683
fork mainnet at the specified block number but the timestamp is not matched with it #3186
Comments
now I have to specify chain.time manually before start forknet to force it |
What version of Ganache? |
v7.1.0 |
What command are you using? |
use |
|
How are you determining that the time is wrong? |
otherwise I will get revert due to timestamp checks |
This is the expiration check. modifier isExpired(uint256 deadLine) {
require(deadLine >= block.timestamp, "Route: expired");
_;
}
|
Ah, ganache uses your system time by default, even for forked blocks. We'll be adding a new option, This got me thinking that when forking we really should probably always set the time to the for block's timestamp (unless the user set a different time). 🤔 |
Yep, If that, it will not make any more confusion.:smiley: |
Agree, it makes more sense to use forked blocks' timestamp |
#3131 is merged! Closing for Issue Maintenance. Thanks for opening this 🙂 |
Reopening as I do think it makes sense for the default behavior to be based off of the forked blocks timestamp. Though this might have to wait until Ganache v8.0 |
No description provided.
The text was updated successfully, but these errors were encountered: