Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
Buckram123 committed Oct 23, 2024
1 parent 1b52353 commit 47a23d6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions cw-orch-daemon/tests/common/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,7 @@ mod node {
}

#[cfg(test)]
#[allow(unused)]
pub fn enable_logger() {
let _ = env_logger::Builder::new()
.filter_level(log::LevelFilter::Debug)
Expand Down
4 changes: 2 additions & 2 deletions packages/cw-orch-osmosis-test-tube/src/core.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
pub use osmosis_test_tube;

use cosmwasm_std::{coin, Addr, Coins};

use cw_orch_core::contract::interface_traits::Uploadable;
Expand Down Expand Up @@ -30,8 +32,6 @@ use cw_orch_core::{

use cw_orch_mock::MockState;

pub use osmosis_test_tube;

use super::queriers::bank::OsmosisTestTubeBankQuerier;

/// Mock Chain info for osmosis test tube. This is used to get the right wasm
Expand Down
4 changes: 2 additions & 2 deletions packages/cw-orch-osmosis-test-tube/src/queriers/wasm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,13 @@ impl<S: StateInterface> WasmQuerier for OsmosisTestTubeWasmQuerier<S> {
)
.map_err(map_err)?;

Ok(code_info_result
code_info_result
.code_info
.ok_or(CwEnvError::CodeIdNotInStore(code_id.to_string()))?
.data_hash
.as_slice()
.try_into()
.map_err(|e: cosmwasm_std::ChecksumError| CwEnvError::StdErr(e.to_string()))?)
.map_err(|e: cosmwasm_std::ChecksumError| CwEnvError::StdErr(e.to_string()))
}

fn contract_info(&self, address: &Addr) -> Result<ContractInfoResponse, CwEnvError> {
Expand Down

0 comments on commit 47a23d6

Please sign in to comment.