The vm.getCode cheatcode was not supported when executing it with the --zksync flag because we did not have access to the zk artifacts. Now that we do we were getting multiple artifacts for a same contract.
Solution
Whenever we need access to the known_contracts we have access to dual_compiled_contract so now we included the zk and non-zk paths in the struct so we can query the type (Zk, EVM) of contract given an artifact_id. With that we can filter and grab the correct contract depending which context we are in.
Motivation
The vm.getCode cheatcode was not supported when executing it with the
--zksync
flag because we did not have access to the zk artifacts. Now that we do we were getting multiple artifacts for a same contract.Solution
Whenever we need access to the known_contracts we have access to dual_compiled_contract so now we included the zk and non-zk paths in the struct so we can query the type (Zk, EVM) of contract given an artifact_id. With that we can filter and grab the correct contract depending which context we are in.