Skip to content

Commit

Permalink
chore: rename reply action
Browse files Browse the repository at this point in the history
  • Loading branch information
kerber0x committed Jul 2, 2024
1 parent 1964229 commit fdc26a5
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions contracts/liquidity_hub/bonding-manager/src/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const CONTRACT_NAME: &str = "white_whale-bonding_manager";
const CONTRACT_VERSION: &str = env!("CARGO_PKG_VERSION");

pub const LP_WITHDRAWAL_REPLY_ID: u64 = 0;
pub const NEW_EPOCH_CREATION_REPLY_ID: u64 = 1;
pub const TEMPORAL_BOND_ACTION_REPLY_ID: u64 = 1;

#[entry_point]
pub fn instantiate(
Expand Down Expand Up @@ -68,7 +68,7 @@ pub fn instantiate(
pub fn reply(deps: DepsMut, env: Env, msg: Reply) -> Result<Response, ContractError> {
match msg.id {
LP_WITHDRAWAL_REPLY_ID => rewards::commands::handle_lp_withdrawal_reply(deps, msg),
NEW_EPOCH_CREATION_REPLY_ID => {
TEMPORAL_BOND_ACTION_REPLY_ID => {
let TemporalBondAction {
sender,
coin,
Expand Down
4 changes: 2 additions & 2 deletions contracts/liquidity_hub/bonding-manager/src/helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ use white_whale_std::pool_manager::{
use white_whale_std::pool_network::asset;
use white_whale_std::pool_network::asset::aggregate_coins;

use crate::contract::{LP_WITHDRAWAL_REPLY_ID, NEW_EPOCH_CREATION_REPLY_ID};
use crate::contract::{LP_WITHDRAWAL_REPLY_ID, TEMPORAL_BOND_ACTION_REPLY_ID};
use crate::error::ContractError;
use crate::queries::query_claimable;
use crate::state::{
Expand Down Expand Up @@ -547,6 +547,6 @@ fn create_temporal_bond_action_submsg(
) -> Result<SubMsg, ContractError> {
Ok(SubMsg::reply_on_success(
wasm_execute(contract_addr, msg, vec![])?,
NEW_EPOCH_CREATION_REPLY_ID,
TEMPORAL_BOND_ACTION_REPLY_ID,
))
}
2 changes: 1 addition & 1 deletion packages/white-whale-std/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "white-whale-std"
version = "1.1.5"
version = "1.1.6"
edition.workspace = true
authors = [
"Kerber0x <[email protected]>",
Expand Down

0 comments on commit fdc26a5

Please sign in to comment.