Skip to content

Commit

Permalink
fix(minor-service-registry): remove old migration handler
Browse files Browse the repository at this point in the history
  • Loading branch information
cjcobb23 committed Nov 14, 2024
1 parent ada9e92 commit b123e95
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion contracts/service-registry/src/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ mod query;

const CONTRACT_NAME: &str = env!("CARGO_PKG_NAME");
const CONTRACT_VERSION: &str = env!("CARGO_PKG_VERSION");
const BASE_VERSION: &str = "1.0.0";

#[cfg_attr(not(feature = "library"), entry_point)]
pub fn instantiate(
Expand Down Expand Up @@ -191,7 +192,7 @@ pub fn migrate(
_env: Env,
_msg: Empty,
) -> Result<Response, axelar_wasm_std::error::ContractError> {
migrations::v0_4_1::migrate(deps.storage)?;
cw2::assert_contract_version(deps.storage, CONTRACT_NAME, BASE_VERSION)?;

cw2::set_contract_version(deps.storage, CONTRACT_NAME, CONTRACT_VERSION)?;

Expand Down

0 comments on commit b123e95

Please sign in to comment.