Open Karrq opened 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:
forge create
cast send --create
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:
forge create
cast send --create