forge_verify::etherscan::flatten

Function strip_build_meta

Source
fn strip_build_meta(version: Version) -> Version
Expand description

Strips BuildMetadata from the Version

Note: this is only for local compilation as a dry run, therefore this will return a sanitized variant of the specific version so that it can be installed. This is merely intended to ensure the flattened code can be compiled without errors.