Hi, anyone know how to succesfully change block.timestamp in anvil? I tried using vm.warp() in chisel while attached to anvil but does not work, either running test that has vm.warp() in it. It seems like the state is being purge in tests. I dunno, I didn't thought it will be that hard IMO. Much easier in hardhat 🙁

Jan 27, 2024, 8:13 PM
"cast rpc" with evm_increaseTime or evm_setNextBlockTimestamp
https://book.getfoundry.sh/reference/anvil/
warp is a cheatcode, it's applied to the internal anvil spawned by forge
Jan 27, 2024, 10:52 PM

© 2024 Draquery.com All rights reserved.