Skip to content

Commit

Permalink
add empty migrate (#505)
Browse files Browse the repository at this point in the history
add empty migrate msg

## 1. Overview

<!-- What are you changing, removing, or adding in this review? -->

## 2. Implementation details

<!-- Describe the implementation (highlights only) as well as design
rationale. -->

## 3. How to test/use

<!-- How can people test/use this? -->

## 4. Checklist

<!-- Checklist for PR author(s). -->

- [ ] Does the Readme need to be updated?

## 5. Limitations (optional)

<!-- Describe any limitation of the capabilities listed in the Overview
section. -->

## 6. Future Work (optional)

<!-- Describe follow up work, if any. -->
  • Loading branch information
0xLaurenzo authored Sep 18, 2023
1 parent 3c643c8 commit 0fb68a7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion smart-contracts/contracts/cl-vault/src/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use crate::error::{ContractError, ContractResult};
use crate::instantiate::{
handle_create_denom_reply, handle_instantiate, handle_instantiate_create_position_reply,
};
use crate::msg::{ExecuteMsg, InstantiateMsg, ModifyRangeMsg, QueryMsg};
use crate::msg::{ExecuteMsg, InstantiateMsg, ModifyRangeMsg, QueryMsg, MigrateMsg};
use crate::query::{
query_info, query_metadata, query_pool, query_position, query_total_assets,
query_total_vault_token_supply, query_user_balance, query_user_rewards,
Expand Down Expand Up @@ -150,5 +150,10 @@ pub fn reply(deps: DepsMut, env: Env, msg: Reply) -> Result<Response, ContractEr
}
}

#[entry_point]
pub fn migrate(_deps: DepsMut, _env: Env, _msg: MigrateMsg) -> Result<Response, ContractError> {
Ok(Response::new().add_attribute("migrate", "successful"))
}

#[cfg(test)]
mod tests {}

0 comments on commit 0fb68a7

Please sign in to comment.