Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: remove migrate msg #32

Merged
merged 1 commit into from
Nov 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 0 additions & 13 deletions contracts/cw-ics20-latest/src/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -842,19 +842,6 @@ pub fn execute_delete_mapping_pair(
#[entry_point]
pub fn migrate(deps: DepsMut, _env: Env, msg: MigrateMsg) -> Result<Response, ContractError> {
// 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())
Expand Down
19 changes: 1 addition & 18 deletions contracts/cw-ics20-latest/src/msg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<u64>,
/// 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 {
Expand Down
Loading