abstract_std::objects::module_version

Function assert_cw_contract_upgrade

Source
pub fn assert_cw_contract_upgrade(
    storage: &dyn Storage,
    to_contract: impl ToString,
    to_version: Version,
) -> Result<(), AbstractError>
Expand description

Assert that the new version is greater than the stored version.