Skip to content

Commit

Permalink
added migration function
Browse files Browse the repository at this point in the history
  • Loading branch information
FloppyDisck committed Dec 17, 2024
1 parent 0c0353e commit ee6e549
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion artifacts/checksums.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
abe859d0055a8d3e9698f7a2d9ee61b96ecc50160c0c0c9965f564456ac4641f msig_launcher.wasm
f92ac4232b90cc4be0703e8bb7612ddbc41bf7f87cfacdf0dd280f37b1e3d8f5 msig_launcher.wasm
Binary file modified artifacts/msig_launcher.wasm
Binary file not shown.
9 changes: 8 additions & 1 deletion contracts/msig-launcher/src/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,15 @@ use cosmwasm_std::entry_point;
use cosmwasm_std::{
to_json_binary, Binary, Deps, DepsMut, Env, MessageInfo, Order, Response, StdResult,
};
use cw2::{get_contract_version, set_contract_version};

Check failure on line 6 in contracts/msig-launcher/src/contract.rs

View workflow job for this annotation

GitHub Actions / Lints

unused imports: `get_contract_version` and `set_contract_version`

Check warning on line 6 in contracts/msig-launcher/src/contract.rs

View workflow job for this annotation

GitHub Actions / Test Suite

unused imports: `get_contract_version` and `set_contract_version`

Check warning on line 6 in contracts/msig-launcher/src/contract.rs

View workflow job for this annotation

GitHub Actions / Test Suite

unused imports: `get_contract_version` and `set_contract_version`
use cw_storage_plus::Bound;
// use cw2::set_contract_version;

use crate::error::ContractError;
use crate::execute::execute_instantiate;
use crate::msg::{
ExecuteMsg, InstantiateMsg, PageResult, QueryMsg, PAGINATION_DEFAULT, PAGINATION_LIMIT,
ExecuteMsg, InstantiateMsg, MigrateMsg, PageResult, QueryMsg, PAGINATION_DEFAULT,
PAGINATION_LIMIT,
};
use crate::state::{MSIG, MSIG_CODE_IDS};
/*
Expand Down Expand Up @@ -58,6 +60,11 @@ pub fn execute(
}
}

#[cfg_attr(not(feature = "library"), cosmwasm_std::entry_point)]
pub fn migrate(_deps: DepsMut, _env: Env, _msg: MigrateMsg) -> Result<Response, ContractError> {
Ok(Response::default())
}

#[cfg_attr(not(feature = "library"), entry_point)]
pub fn query(deps: Deps, _env: Env, msg: QueryMsg) -> StdResult<Binary> {
match msg {
Expand Down
3 changes: 3 additions & 0 deletions contracts/msig-launcher/src/msg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ pub enum ExecuteMsg {
},
}

#[cw_serde]
pub struct MigrateMsg {}

#[cw_serde]
pub struct Pagination {
pub user: Addr,
Expand Down

0 comments on commit ee6e549

Please sign in to comment.