Skip to content

Commit

Permalink
fix: add _msg: MigrateMsg parameter to the migrate function in rates …
Browse files Browse the repository at this point in the history
…and address list
  • Loading branch information
joemonem committed May 14, 2024
1 parent d365759 commit c463ba3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions contracts/modules/andromeda-address-list/src/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use andromeda_modules::address_list::{ActorPermissionResponse, IncludesActorResp
#[cfg(not(feature = "library"))]
use andromeda_modules::address_list::{ExecuteMsg, InstantiateMsg, QueryMsg};
use andromeda_std::{
ado_base::{permissioning::Permission, InstantiateMsg as BaseInstantiateMsg},
ado_base::{permissioning::Permission, InstantiateMsg as BaseInstantiateMsg, MigrateMsg},
ado_contract::ADOContract,
common::{context::ExecuteContext, encode_binary},
error::ContractError,
Expand Down Expand Up @@ -127,7 +127,7 @@ fn execute_remove_actor_permission(
}

#[cfg_attr(not(feature = "library"), entry_point)]
pub fn migrate(deps: DepsMut, _env: Env) -> Result<Response, ContractError> {
pub fn migrate(deps: DepsMut, _env: Env, _msg: MigrateMsg) -> Result<Response, ContractError> {
ADOContract::default().migrate(deps, CONTRACT_NAME, CONTRACT_VERSION)
}

Expand Down
4 changes: 2 additions & 2 deletions contracts/modules/andromeda-rates/src/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use andromeda_modules::rates::{ExecuteMsg, InstantiateMsg, QueryMsg, RateRespons
use andromeda_std::{
ado_base::{
rates::{calculate_fee, LocalRate, PaymentAttribute, RatesResponse},
InstantiateMsg as BaseInstantiateMsg,
InstantiateMsg as BaseInstantiateMsg, MigrateMsg,
},
ado_contract::ADOContract,
common::{context::ExecuteContext, deduct_funds, encode_binary, Funds},
Expand Down Expand Up @@ -110,7 +110,7 @@ fn execute_remove_rate(ctx: ExecuteContext, action: String) -> Result<Response,
}

#[cfg_attr(not(feature = "library"), entry_point)]
pub fn migrate(deps: DepsMut, _env: Env) -> Result<Response, ContractError> {
pub fn migrate(deps: DepsMut, _env: Env, _msg: MigrateMsg) -> Result<Response, ContractError> {
ADOContract::default().migrate(deps, CONTRACT_NAME, CONTRACT_VERSION)
}

Expand Down

0 comments on commit c463ba3

Please sign in to comment.