From f51b2c6cb4f28f708092fbf1c29553079f7e2469 Mon Sep 17 00:00:00 2001 From: Trinity Date: Thu, 19 Sep 2024 17:38:27 +0700 Subject: [PATCH] lint --- contracts/consumer/band-price-feed/src/contract.rs | 3 +-- contracts/consumer/band-price-feed/src/ibc.rs | 6 ++---- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/contracts/consumer/band-price-feed/src/contract.rs b/contracts/consumer/band-price-feed/src/contract.rs index 0434ae02..b7a3c397 100644 --- a/contracts/consumer/band-price-feed/src/contract.rs +++ b/contracts/consumer/band-price-feed/src/contract.rs @@ -1,6 +1,5 @@ use cosmwasm_std::{ - to_json_binary, Binary, Coin, DepsMut, Env, IbcChannel, IbcEndpoint, IbcMsg, IbcTimeout, - Response, Uint64, + to_json_binary, Binary, Coin, DepsMut, Env, IbcChannel, IbcMsg, IbcTimeout, Response, Uint64, }; use cw2::set_contract_version; use cw_storage_plus::Item; diff --git a/contracts/consumer/band-price-feed/src/ibc.rs b/contracts/consumer/band-price-feed/src/ibc.rs index 3113ff05..92fede5a 100644 --- a/contracts/consumer/band-price-feed/src/ibc.rs +++ b/contracts/consumer/band-price-feed/src/ibc.rs @@ -8,9 +8,7 @@ use cosmwasm_std::{ StdError, Uint128, }; use cw_band::{OracleResponsePacketData, Output, ResolveStatus}; -use mesh_apis::ibc::{ - ack_fail, ack_success, validate_channel_order, PriceFeedAck, ProtocolVersion, -}; +use mesh_apis::ibc::{ack_fail, ack_success, PriceFeedAck}; use obi::OBIDecode; use crate::contract::RemotePriceFeedContract; @@ -91,7 +89,7 @@ pub fn ibc_channel_connect( // Version negotiation over, we can only store the channel let contract = RemotePriceFeedContract::new(); - contract.channel.save(deps.storage, &channel)?; + contract.channel.save(deps.storage, channel)?; Ok(IbcBasicResponse::default()) }