pub fn assert_contract_version(
    storage: &dyn Storage,
    expected_contract: &str,
    expected_version: &str
) -> Result<(), VersionError>
Expand description

Assert that the stored contract version info matches the given value. This is useful during migrations, for making sure that the correct contract is being migrated, and it’s being migrated from the correct version.