Skip to main content

has_deployed_code

Function has_deployed_code 

Source
fn has_deployed_code(
    artifact: &ConfigurableContractArtifact,
    code: &Bytes,
) -> bool
Expand 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.