Skip to content

Commit abe70bf

Browse files
committedSep 19, 2024
lint
1 parent 9645e32 commit abe70bf

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed
 

‎contracts/consumer/band-price-feed/src/contract.rs

-1
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,6 @@ impl RemotePriceFeedContract {
9797
let ExecCtx { deps, env, info: _ } = ctx;
9898
try_request(deps, &env)
9999
}
100-
101100
}
102101

103102
impl PriceFeedApi for RemotePriceFeedContract {

‎contracts/consumer/band-price-feed/src/ibc.rs

+7-4
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@
22
use cosmwasm_std::entry_point;
33

44
use cosmwasm_std::{
5-
from_json, Decimal, DepsMut, Env, Ibc3ChannelOpenResponse, IbcBasicResponse, IbcChannelCloseMsg, IbcChannelConnectMsg, IbcChannelOpenMsg, IbcChannelOpenResponse, IbcOrder, IbcPacket, IbcPacketAckMsg, IbcPacketReceiveMsg, IbcPacketTimeoutMsg, IbcReceiveResponse, StdError, Uint128
5+
from_json, Decimal, DepsMut, Env, Ibc3ChannelOpenResponse, IbcBasicResponse,
6+
IbcChannelCloseMsg, IbcChannelConnectMsg, IbcChannelOpenMsg, IbcChannelOpenResponse, IbcOrder,
7+
IbcPacket, IbcPacketAckMsg, IbcPacketReceiveMsg, IbcPacketTimeoutMsg, IbcReceiveResponse,
8+
StdError, Uint128,
69
};
710
use cw_band::{OracleResponsePacketData, Output, ResolveStatus};
811
use mesh_apis::ibc::{
@@ -30,7 +33,7 @@ pub fn ibc_channel_open(
3033
// ensure we are called with OpenInit
3134
let channel = msg.channel();
3235
let counterparty_version = msg.counterparty_version();
33-
36+
3437
if channel.version != IBC_APP_VERSION {
3538
return Err(ContractError::InvalidIbcVersion {
3639
version: channel.version.clone(),
@@ -66,10 +69,10 @@ pub fn ibc_channel_connect(
6669
if contract.channel.may_load(deps.storage)?.is_some() {
6770
return Err(ContractError::IbcChannelAlreadyOpen);
6871
}
69-
72+
7073
let channel = msg.channel();
7174
let counterparty_version = msg.counterparty_version();
72-
75+
7376
if channel.version != IBC_APP_VERSION {
7477
return Err(ContractError::InvalidIbcVersion {
7578
version: channel.version.clone(),

0 commit comments

Comments
 (0)