Open benams opened 1 year ago
This is probably a similar problem to what is happening in https://github.com/trufflesuite/ganache/issues/4146#issuecomment-1377506906. You probably need to set --chain.time="<time of block in UTC here> UTC"
and --miner.timestampIncrement=13
(13 is roughly the number of seconds between blocks) when starting ganache, (in addition to the fork block number).
We hope to change this behavior in the next major release so that when you fork from a block number ganache automatically uses the fork block's time for its internal clock (though the timestampIncrement
option will be set to 1
, not 13
as in my example above).
Thank you again! It really solved the issue. I just need to say that for older transactions, I could simulate without this chain.time flag, and this is why I removed it in the first place. Is that expected?
I'm running ganache @ version 7.7.2 and trying to simulate an old transaction (tx hash is "0xb786e8dcc0257ff863b5c727090d88576758ce86be685651b9890d8e5c63c7b0") and it end with a revert for a reason I can't find. The code I use:
My log:
I'm not sure why this error occurs and how to fix it, any ideas?