forge_verify::etherscan

Function ensure_solc_build_metadata

Source
async fn ensure_solc_build_metadata(version: Version) -> Result<Version>
Expand description

Given any solc Version return a Version with build metadata

§Example

use semver::{BuildMetadata, Version};
let version = Version::new(1, 2, 3);
let version = ensure_solc_build_metadata(version).await?;
assert_ne!(version.build, BuildMetadata::EMPTY);