Skip to content

Commit

Permalink
fix(minor-voting-verifier): remove old migration handler
Browse files Browse the repository at this point in the history
  • Loading branch information
cjcobb23 committed Nov 13, 2024
1 parent ada9e92 commit 7c80072
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 269 deletions.
4 changes: 2 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 Down Expand Up @@ -111,7 +110,8 @@ pub fn migrate(
_env: Env,
_msg: Empty,
) -> Result<Response, axelar_wasm_std::error::ContractError> {
v0_5_0::migrate(deps.storage)?;
// any version checks should be done before here
cw2::set_contract_version(deps.storage, CONTRACT_NAME, CONTRACT_VERSION)?;

Check warning on line 114 in contracts/voting-verifier/src/contract.rs

View check run for this annotation

Codecov / codecov/patch

contracts/voting-verifier/src/contract.rs#L113-L114

Added lines #L113 - L114 were not covered by tests

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 7c80072

Please sign in to comment.