Closed nlordell closed 11 months ago
Awesome!
Thanks again @nlordell, this looks great!
Do you mind resolving conflicts here too and adding an integration test to tests/api.rs
? It should be relatively straight forward to turn your manual test into an integration test but please ping me if you have any questions on that.
Do you mind resolving conflicts here too
I'll do #18 first and this one afterwards, as there will be more merge conflicts from that PR as well.
Updated the PR to:
Thanks for the contribution again @nlordell!
This PR adds support for specifying access lists to simulations. It is mostly straight forward, we overwrite the
foundry::Evm
'sTxEnv
to additionally include a simulation's access list (just requires some type conversions as therevm
crate uses slightly different types toethers
).call_raw_*
Functions now take a singleCallRawRequest
as the number of arguments were growing and hit Clippy's "too many arguments" lint.Manual Testing:
Run simulations with and without access lists and see different gas used amounts:
``` % curl -s http://localhost:8080/api/v1/simulate -H 'Content-Type: application/json' --data '@-' <