Replies: 1 comment
-
The issue with using an ffi function like this is that it doesn't work well with a broadcast since the broadcast happens after the creation of the transacitons (and the execution of the ffi). |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Firstly, I'm sure there are a whole bunch of complications and considerations here.
Using hardhat/truffle etc it is very common to manipulate time on ganache/hardhat/anvil in scripts, but there isn't a clean way to do this in solidity scripts with forge.
Maybe a library of common FFI functions is the approach to go?
We have already implemented the
evm_setNextBlockTimestamp
method that uses an ffi, but would like to know if there are plans or thoughts around this.Here is our little hack:
Beta Was this translation helpful? Give feedback.
All reactions