matter-labs / foundry-zksync

Fork of Foundry tailored for zkSync environment
Apache License 2.0
299 stars 130 forks source link

Support injected factory deps #674

Open Karrq opened 2 weeks ago

Karrq commented 2 weeks ago

Users want to be able to inject a factory dep to a given contract, be it for tests or scripts and potentially deployments too.

We used to have this feature (partially) with https://github.com/matter-labs/foundry-zksync/pull/310, which was reworked into using information from the compiler in https://github.com/matter-labs/foundry-zksync/pull/316, but this is not sufficient when factory deps are not depended upon directly by the factory contract (thus the "injected" adjective)

Tasks:

Karrq commented 2 weeks ago

671 will add support for the first 2 sub tasks