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 9b50395
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 119 deletions.
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)?;

Check warning on line 195 in contracts/service-registry/src/contract.rs

View check run for this annotation

Codecov / codecov/patch

contracts/service-registry/src/contract.rs#L195

Added line #L195 was not covered by tests

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

Expand Down
1 change: 0 additions & 1 deletion contracts/service-registry/src/contract/migrations/mod.rs
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
pub mod v0_4_1;
117 changes: 0 additions & 117 deletions contracts/service-registry/src/contract/migrations/v0_4_1.rs

This file was deleted.

0 comments on commit 9b50395

Please sign in to comment.