Skip to content

Commit

Permalink
chore(contracts): remove previous migrations (#471)
Browse files Browse the repository at this point in the history
  • Loading branch information
haiyizxx authored Jun 24, 2024
1 parent 92b0f40 commit 0cf4bac
Show file tree
Hide file tree
Showing 8 changed files with 4 additions and 295 deletions.
4 changes: 2 additions & 2 deletions contracts/multisig-prover/src/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use error_stack::ResultExt;

use crate::{
error::ContractError,
execute, migrations,
execute,
msg::{ExecuteMsg, InstantiateMsg, QueryMsg},
query, reply,
state::{Config, CONFIG},
Expand Down Expand Up @@ -136,7 +136,7 @@ pub fn migrate(
) -> Result<Response, axelar_wasm_std::ContractError> {
cw2::set_contract_version(deps.storage, CONTRACT_NAME, CONTRACT_VERSION)?;

migrations::v_0_5::migrate_verifier_sets(deps)
Ok(Response::default())
}

#[cfg(test)]
Expand Down
1 change: 0 additions & 1 deletion contracts/multisig-prover/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ pub mod encoding;
pub mod error;
pub mod events;
mod execute;
mod migrations;
pub mod msg;
pub mod payload;
mod query;
Expand Down
1 change: 0 additions & 1 deletion contracts/multisig-prover/src/migrations/mod.rs

This file was deleted.

187 changes: 0 additions & 187 deletions contracts/multisig-prover/src/migrations/v_0_5.rs

This file was deleted.

5 changes: 2 additions & 3 deletions contracts/multisig/src/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ use cosmwasm_std::{

use crate::{
events::Event,
migrations,
msg::{ExecuteMsg, InstantiateMsg, QueryMsg},
state::{
get_verifier_set, Config, CONFIG, SIGNING_SESSIONS, SIGNING_SESSION_COUNTER, VERIFIER_SETS,
Expand All @@ -24,13 +23,13 @@ const CONTRACT_VERSION: &str = env!("CARGO_PKG_VERSION");

#[cfg_attr(not(feature = "library"), entry_point)]
pub fn migrate(
mut deps: DepsMut,
deps: DepsMut,
_env: Env,
_msg: Empty,
) -> Result<Response, axelar_wasm_std::ContractError> {
cw2::set_contract_version(deps.storage, CONTRACT_NAME, CONTRACT_VERSION)?;

migrations::v_0_4::migrate(&mut deps)
Ok(Response::default())
}

#[cfg_attr(not(feature = "library"), entry_point)]
Expand Down
1 change: 0 additions & 1 deletion contracts/multisig/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ pub mod contract;
pub mod error;
pub mod events;
pub mod key;
mod migrations;
pub mod msg;
pub mod multisig;
pub mod signing;
Expand Down
1 change: 0 additions & 1 deletion contracts/multisig/src/migrations/mod.rs

This file was deleted.

99 changes: 0 additions & 99 deletions contracts/multisig/src/migrations/v_0_4.rs

This file was deleted.

0 comments on commit 0cf4bac

Please sign in to comment.