Skip to content

Commit

Permalink
replace Response<CosmosMsg> with empty Response
Browse files Browse the repository at this point in the history
  • Loading branch information
sotnikov-s committed Nov 1, 2024
1 parent df1c57f commit 9918d0f
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
use crate::msg::{ExecuteMsg, InstantiateMsg, MigrateMsg, QueryMsg};
use crate::state::{ICQ_ID_TO_WATCHED_ADDR, REMOTE_BALANCES};
use cosmwasm_std::{
entry_point, from_json, to_json_binary, Binary, CosmosMsg, Deps, DepsMut, Env, MessageInfo,
Reply, ReplyOn, Response, StdError, StdResult, SubMsg,
entry_point, from_json, to_json_binary, Binary, Deps, DepsMut, Env, MessageInfo, Reply,
ReplyOn, Response, StdError, StdResult, SubMsg,
};
use cw2::set_contract_version;
use neutron_sdk::interchain_queries::v047::{
Expand Down Expand Up @@ -50,7 +50,7 @@ pub fn execute(
env: Env,
_info: MessageInfo,
msg: ExecuteMsg,
) -> NeutronResult<Response<CosmosMsg>> {
) -> NeutronResult<Response> {
match msg {
ExecuteMsg::RegisterBalancesQuery {
connection_id,
Expand All @@ -67,7 +67,7 @@ pub fn register_balances_query(
addr: String,
denoms: Vec<String>,
update_period: u64,
) -> NeutronResult<Response<CosmosMsg>> {
) -> NeutronResult<Response> {
let msg = new_register_balances_query_msg(
env.contract.address,
connection_id,
Expand All @@ -80,7 +80,7 @@ pub fn register_balances_query(
Ok(Response::new().add_submessage(SubMsg {
id: REGISTER_BALANCES_ICQ_REPLY_ID,
payload: to_json_binary(&addr)?,
msg: CosmosMsg::Custom(msg),
msg: msg,
gas_limit: None,
reply_on: ReplyOn::Success,
}))
Expand Down

0 comments on commit 9918d0f

Please sign in to comment.