Skip to content

Commit

Permalink
cleanup return func
Browse files Browse the repository at this point in the history
  • Loading branch information
NeverHappened committed Oct 15, 2024
1 parent a329bd9 commit bdaa2d4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion contracts/neutron_interchain_txs/src/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ fn execute_register_ica(
interchain_account_id.clone(),
register_fee,
ordering,
)?;
);
let key = get_port_id(&env.contract.address.to_string(), &interchain_account_id);
// we are saving empty data here because we handle response of registering ICA in sudo_open_ack method
INTERCHAIN_ACCOUNTS.save(deps.storage, key, &None)?;
Expand Down
7 changes: 3 additions & 4 deletions packages/neutron-sdk/src/interchain_txs/helpers.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
use crate::bindings::msg::ChannelOrdering;
use crate::NeutronResult;
use cosmos_sdk_proto::traits::Message;
use cosmwasm_std::{Addr, CosmosMsg, StdError, StdResult};
use neutron_std::shim::Any;
Expand Down Expand Up @@ -34,15 +33,15 @@ pub fn register_interchain_account(
interchain_account_id: String,
register_fee: Vec<Coin>,
ordering: Option<ChannelOrdering>,
) -> NeutronResult<CosmosMsg> {
Ok(MsgRegisterInterchainAccount {
) -> CosmosMsg {
MsgRegisterInterchainAccount {
from_address: contract.to_string(),
connection_id,
interchain_account_id,
register_fee,
ordering: ordering.unwrap_or(ChannelOrdering::OrderOrdered).into(),
}
.into())
.into()
}

/// Basic helper to define a submit tx message:
Expand Down

0 comments on commit bdaa2d4

Please sign in to comment.