fn has_deployed_code(
artifact: &ConfigurableContractArtifact,
code: &Bytes,
) -> boolExpand description
Returns whether code is the artifact’s deployed bytecode.
Immutables are zero in the artifact and only filled in at deployment, so their values are ignored, but only when the artifact ends in a metadata hash. The hash commits to the sources, so the rest of the code still has to come from the same contract.