From 034c05c18d08420254f1822703e538c96b528af6 Mon Sep 17 00:00:00 2001 From: trung2891 Date: Fri, 22 Nov 2024 11:33:25 +0700 Subject: [PATCH] chore: remove migrate msg --- contracts/cw-ics20-latest/src/contract.rs | 13 ------------- contracts/cw-ics20-latest/src/msg.rs | 19 +------------------ 2 files changed, 1 insertion(+), 31 deletions(-) diff --git a/contracts/cw-ics20-latest/src/contract.rs b/contracts/cw-ics20-latest/src/contract.rs index e87b409..8f225c1 100644 --- a/contracts/cw-ics20-latest/src/contract.rs +++ b/contracts/cw-ics20-latest/src/contract.rs @@ -842,19 +842,6 @@ pub fn execute_delete_mapping_pair( #[entry_point] pub fn migrate(deps: DepsMut, _env: Env, msg: MigrateMsg) -> Result { // we don't need to save anything if migrating from the same version - let cfg = Config { - default_timeout: msg.default_timeout, - default_gas_limit: msg.default_gas_limit, - fee_denom: "orai".to_string(), - swap_router_contract: RouterController(msg.swap_router_contract), - token_fee_receiver: msg.token_fee_receiver, - relayer_fee_receiver: msg.relayer_fee_receiver, - converter_contract: ConverterController(msg.converter_contract), - osor_entrypoint_contract: msg.osor_entrypoint_contract, - token_factory_addr: msg.token_factory_addr, - }; - CONFIG.save(deps.storage, &cfg)?; - set_contract_version(deps.storage, CONTRACT_NAME, CONTRACT_VERSION)?; Ok(Response::new()) diff --git a/contracts/cw-ics20-latest/src/msg.rs b/contracts/cw-ics20-latest/src/msg.rs index 34a972f..3a1f999 100644 --- a/contracts/cw-ics20-latest/src/msg.rs +++ b/contracts/cw-ics20-latest/src/msg.rs @@ -36,24 +36,7 @@ pub struct AllowMsg { } #[cw_serde] -pub struct MigrateMsg { - pub token_fee_receiver: Addr, - - pub relayer_fee_receiver: Addr, - /// Default timeout for ics20 packets, specified in seconds - pub default_timeout: u64, - /// If set, contracts off the allowlist will run with this gas limit. - /// If unset, will refuse to accept any contract off the allow list. - pub default_gas_limit: Option, - /// router contract for fee swap - pub swap_router_contract: String, - /// converter contract for convert token - pub converter_contract: String, - // entrypoint for handling swap and post actions like IBC transfer to remote - pub osor_entrypoint_contract: String, - // token factory proxy address - pub token_factory_addr: Addr, -} +pub struct MigrateMsg {} #[cw_serde] pub enum ExecuteMsg {