Skip to content

Commit

Permalink
chore: bump vault contract version before migration on terra
Browse files Browse the repository at this point in the history
  • Loading branch information
kerber0x authored Oct 20, 2023
2 parents 054d320 + 9a38f37 commit e7e52be
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 14 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -238,18 +238,15 @@ pub fn migrate(mut deps: DepsMut, _env: Env, _msg: MigrateMsg) -> Result<Respons

check_contract_name(deps.storage, CONTRACT_NAME.to_string())?;

//let version: Version = CONTRACT_VERSION.parse()?;
let version: Version = CONTRACT_VERSION.parse()?;
let storage_version: Version = get_contract_version(deps.storage)?.version.parse()?;

// we remove this block not to bump the version of the contract again as the migration was done
// already (without the token factory fix)

// if storage_version >= version {
// return Err(ContractError::MigrateInvalidVersion {
// current_version: storage_version,
// new_version: version,
// });
// }
if storage_version >= version {
return Err(ContractError::MigrateInvalidVersion {
current_version: storage_version,
new_version: version,
});
}

if storage_version <= Version::parse("1.0.4")? {
migrations::migrate_to_v110(deps.branch())?;
Expand Down
2 changes: 1 addition & 1 deletion contracts/liquidity_hub/vault-network/vault/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "vault"
version = "1.2.3"
version = "1.2.4"
authors = ["kaimen-sano <[email protected]>"]
edition.workspace = true
description = "Contract to handle a single vault that controls an asset"
Expand Down
4 changes: 2 additions & 2 deletions scripts/build_release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ flag=""

case $chain in

juno)
juno | terra)
flag="-osmosis_token_factory"
;;
terra | migaloo)
migaloo)
flag="-token_factory"
;;
injective)
Expand Down

0 comments on commit e7e52be

Please sign in to comment.