Skip to content

Commit

Permalink
rm redundant import
Browse files Browse the repository at this point in the history
  • Loading branch information
rnbguy committed Jul 11, 2024
1 parent 35d8cdd commit 256cbd9
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions ibc-clients/cw-context/src/context/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ pub mod custom_ctx;

use std::str::FromStr;

use cosmwasm_std::{Checksum, ChecksumError, Deps, DepsMut, Empty, Env, Order, Storage};
use cosmwasm_std::{Checksum, Deps, DepsMut, Empty, Env, Order, Storage};
use cw_storage_plus::{Bound, Map};
use ibc_client_wasm_types::client_state::ClientState as WasmClientState;
use ibc_core::client::context::client_state::ClientStateCommon;
Expand Down Expand Up @@ -285,11 +285,12 @@ where
}
})?;

let checksum = wasm_client_state.checksum.as_slice().try_into().map_err(
|e: ChecksumError| ClientError::Other {
description: e.to_string(),
},
)?;
let checksum =
Checksum::try_from(wasm_client_state.checksum.as_slice()).map_err(|e| {
ClientError::Other {
description: e.to_string(),
}

Check warning on line 292 in ibc-clients/cw-context/src/context/mod.rs

View check run for this annotation

Codecov / codecov/patch

ibc-clients/cw-context/src/context/mod.rs#L290-L292

Added lines #L290 - L292 were not covered by tests
})?;

Ok(checksum)
}
Expand Down

0 comments on commit 256cbd9

Please sign in to comment.