book icon indicating copy to clipboard operation
book copied to clipboard

Guidance for address management when fork testing

Open PaulRBerg opened this issue 2 years ago • 3 comments

If you want to fork test a single chain, hard coding your dependencies' addresses in the Solidity tests is a simple and effective approach. However, it doesn't scale well the more chains you want to support for fork testing.

It would be nice if users were given a few tips and tricks about this topic in the Fork Testing tutorial.

For instance, MakerDAO is using JSON configuration files (as per the discussion in https://github.com/foundry-rs/forge-std/pull/268).

PaulRBerg avatar Apr 20 '23 10:04 PaulRBerg

adding a link to Uniswap's universal router usage as well (base deploy script inherited by other scripts which define the params)

wminshew avatar Jun 01 '23 19:06 wminshew

Sharing Matt Solomon's insights from the Foundry Support group:

Screenshot 2023-07-02 at 9 53 59 PM

PaulRBerg avatar Jul 02 '23 18:07 PaulRBerg