Skip to content

Commit 034c05c

Browse files
committed
chore: remove migrate msg
1 parent 9660afa commit 034c05c

File tree

2 files changed

+1
-31
lines changed

2 files changed

+1
-31
lines changed

contracts/cw-ics20-latest/src/contract.rs

-13
Original file line numberDiff line numberDiff line change
@@ -842,19 +842,6 @@ pub fn execute_delete_mapping_pair(
842842
#[entry_point]
843843
pub fn migrate(deps: DepsMut, _env: Env, msg: MigrateMsg) -> Result<Response, ContractError> {
844844
// we don't need to save anything if migrating from the same version
845-
let cfg = Config {
846-
default_timeout: msg.default_timeout,
847-
default_gas_limit: msg.default_gas_limit,
848-
fee_denom: "orai".to_string(),
849-
swap_router_contract: RouterController(msg.swap_router_contract),
850-
token_fee_receiver: msg.token_fee_receiver,
851-
relayer_fee_receiver: msg.relayer_fee_receiver,
852-
converter_contract: ConverterController(msg.converter_contract),
853-
osor_entrypoint_contract: msg.osor_entrypoint_contract,
854-
token_factory_addr: msg.token_factory_addr,
855-
};
856-
CONFIG.save(deps.storage, &cfg)?;
857-
858845
set_contract_version(deps.storage, CONTRACT_NAME, CONTRACT_VERSION)?;
859846

860847
Ok(Response::new())

contracts/cw-ics20-latest/src/msg.rs

+1-18
Original file line numberDiff line numberDiff line change
@@ -36,24 +36,7 @@ pub struct AllowMsg {
3636
}
3737

3838
#[cw_serde]
39-
pub struct MigrateMsg {
40-
pub token_fee_receiver: Addr,
41-
42-
pub relayer_fee_receiver: Addr,
43-
/// Default timeout for ics20 packets, specified in seconds
44-
pub default_timeout: u64,
45-
/// If set, contracts off the allowlist will run with this gas limit.
46-
/// If unset, will refuse to accept any contract off the allow list.
47-
pub default_gas_limit: Option<u64>,
48-
/// router contract for fee swap
49-
pub swap_router_contract: String,
50-
/// converter contract for convert token
51-
pub converter_contract: String,
52-
// entrypoint for handling swap and post actions like IBC transfer to remote
53-
pub osor_entrypoint_contract: String,
54-
// token factory proxy address
55-
pub token_factory_addr: Addr,
56-
}
39+
pub struct MigrateMsg {}
5740

5841
#[cw_serde]
5942
pub enum ExecuteMsg {

0 commit comments

Comments
 (0)