Skip to content

Commit

Permalink
fix(minor-voting-verifier): remove old migration handler (#693)
Browse files Browse the repository at this point in the history
  • Loading branch information
cjcobb23 authored Nov 14, 2024
1 parent 9f91b1e commit f168b20
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 269 deletions.
6 changes: 4 additions & 2 deletions contracts/voting-verifier/src/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ use cosmwasm_std::{
};
use error_stack::ResultExt;

use crate::contract::migrations::v0_5_0;
use crate::error::ContractError;
use crate::msg::{ExecuteMsg, InstantiateMsg, QueryMsg};
use crate::state::{Config, CONFIG};
Expand All @@ -18,6 +17,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 @@ -111,7 +111,9 @@ pub fn migrate(
_env: Env,
_msg: Empty,
) -> Result<Response, axelar_wasm_std::error::ContractError> {
v0_5_0::migrate(deps.storage)?;
cw2::assert_contract_version(deps.storage, CONTRACT_NAME, BASE_VERSION)?;

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

Ok(Response::default())
}
Expand Down
2 changes: 1 addition & 1 deletion contracts/voting-verifier/src/contract/migrations/mod.rs
Original file line number Diff line number Diff line change
@@ -1 +1 @@
pub mod v0_5_0;

266 changes: 0 additions & 266 deletions contracts/voting-verifier/src/contract/migrations/v0_5_0.rs

This file was deleted.

0 comments on commit f168b20

Please sign in to comment.