Skip to content

Commit

Permalink
add empty migrate msg
Browse files Browse the repository at this point in the history
  • Loading branch information
ajansari95 committed Apr 23, 2024
1 parent b2d7f68 commit 7fe0328
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions smart-contracts/contracts/cl-vault/src/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -183,9 +183,6 @@ pub fn reply(deps: DepsMut, env: Env, msg: Reply) -> Result<Response, ContractEr
}

#[cfg_attr(not(feature = "library"), entry_point)]
pub fn migrate(deps: DepsMut, _env: Env, _msg: MigrateMsg) -> Result<Response, ContractError> {
REWARDS_STATUS.save(deps.storage, &RewardsStatus::Ready)?;
DISTRIBUTED_REWARDS.save(deps.storage, &CoinList::new())?;
CURRENT_TOTAL_SUPPLY.save(deps.storage, &Uint128::zero())?;
Ok(Response::new().add_attribute("migrate", "successful"))
pub fn migrate(_deps: DepsMut, _env: Env, _msg: MigrateMsg) -> Result<Response, ContractError> {
Ok(Response::default())
}

0 comments on commit 7fe0328

Please sign in to comment.