diff --git a/contracts/neutron_interchain_queries/src/testing/mock_querier.rs b/contracts/neutron_interchain_queries/src/testing/mock_querier.rs index df7e36a3..d006342a 100644 --- a/contracts/neutron_interchain_queries/src/testing/mock_querier.rs +++ b/contracts/neutron_interchain_queries/src/testing/mock_querier.rs @@ -60,21 +60,19 @@ impl WasmMockQuerier { pub fn handle_query(&self, request: &QueryRequest) -> QuerierResult { match &request { QueryRequest::Grpc(GrpcQuery { path, data }) => { - let quoted_path = path.trim_matches('"').to_string(); - if "ed_path == "/neutron.interchainqueries.Query/QueryResult" { + if path == "/neutron.interchainqueries.Query/QueryResult" { let request: QueryRegisteredQueryResultRequest = ::prost::Message::decode(&data[..]).unwrap(); SystemResult::Ok(ContractResult::Ok( (*self.query_responses.get(&request.query_id).unwrap()).clone(), )) - } else if "ed_path == "/neutron.interchainqueries.Query/RegisteredQuery" { + } else if path == "/neutron.interchainqueries.Query/RegisteredQuery" { let request: QueryRegisteredQueryRequest = ::prost::Message::decode(&data[..]).unwrap(); SystemResult::Ok(ContractResult::Ok( (*self.registered_queries.get(&request.query_id).unwrap()).clone(), )) } else { - println!("PATH: {}", quoted_path); self.base.handle_query(request) } } diff --git a/contracts/neutron_interchain_txs/src/contract.rs b/contracts/neutron_interchain_txs/src/contract.rs index 55b3cc6d..1548f76e 100644 --- a/contracts/neutron_interchain_txs/src/contract.rs +++ b/contracts/neutron_interchain_txs/src/contract.rs @@ -1,16 +1,15 @@ -use cosmos_sdk_proto::traits::Message; -use cosmwasm_std::{ - to_json_binary, Addr, Binary, CosmosMsg, CustomQuery, Deps, DepsMut, Env, MessageInfo, Reply, - Response, StdError, StdResult, SubMsg, -}; -use cw2::set_contract_version; -use neutron_std::shim::Timestamp; use crate::msg::{ExecuteMsg, InstantiateMsg, MigrateMsg, QueryMsg}; use crate::storage::{ add_error_to_queue, read_errors_from_queue, read_reply_payload, read_sudo_payload, save_reply_payload, save_sudo_payload, AcknowledgementResult, SudoPayload, ACKNOWLEDGEMENT_RESULTS, INTERCHAIN_ACCOUNTS, SUDO_PAYLOAD_REPLY_ID, }; +use cosmos_sdk_proto::traits::Message; +use cosmwasm_std::{ + to_json_binary, Addr, Binary, CosmosMsg, CustomQuery, Deps, DepsMut, Env, MessageInfo, Reply, + Response, StdError, StdResult, SubMsg, +}; +use cw2::set_contract_version; use neutron_sdk::interchain_txs::helpers::register_interchain_account; use neutron_sdk::{ interchain_txs::helpers::{decode_message_response, get_port_id}, @@ -18,6 +17,7 @@ use neutron_sdk::{ sudo::msg::{RequestPacket, SudoMsg}, NeutronError, NeutronResult, }; +use neutron_std::shim::Timestamp; use neutron_std::types::cosmos::base::v1beta1::Coin as SDKCoin; use neutron_std::types::cosmos::base::v1beta1::Coin; use neutron_std::types::cosmos::staking::v1beta1::{ diff --git a/packages/neutron-sdk/src/lib.rs b/packages/neutron-sdk/src/lib.rs index e984f128..1aeb6f03 100644 --- a/packages/neutron-sdk/src/lib.rs +++ b/packages/neutron-sdk/src/lib.rs @@ -3,7 +3,6 @@ // #![forbid(unsafe_code)] #![warn(trivial_casts, trivial_numeric_casts, unused_import_braces)] - pub mod bindings; mod errors; pub mod interchain_queries;