Skip to content

Commit

Permalink
use imports
Browse files Browse the repository at this point in the history
  • Loading branch information
rnbguy committed Apr 20, 2024
1 parent b442f93 commit 41bed59
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ibc-clients/cw-context/src/context/client_ctx.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ use ibc_core::primitives::Timestamp;

use super::{Context, StorageMut};
use crate::api::ClientType;
use crate::context::CONSENSUS_STATE_HEIGHT_MAP;
use crate::utils::AnyCodec;

impl<'a, C: ClientType<'a>> ClientValidationContext for Context<'a, C> {
Expand Down Expand Up @@ -154,7 +155,7 @@ impl<'a, C: ClientType<'a>> ClientExecutionContext for Context<'a, C> {

self.insert(prefixed_height_key, revision_height_vec);

super::CONSENSUS_STATE_HEIGHT_MAP
CONSENSUS_STATE_HEIGHT_MAP
.save(
self.storage_mut(),
(height.revision_number(), height.revision_height()),
Expand Down Expand Up @@ -184,7 +185,7 @@ impl<'a, C: ClientType<'a>> ClientExecutionContext for Context<'a, C> {

self.remove(prefixed_height_key);

super::CONSENSUS_STATE_HEIGHT_MAP.remove(
CONSENSUS_STATE_HEIGHT_MAP.remove(
self.storage_mut(),
(height.revision_number(), height.revision_height()),
);
Expand Down

0 comments on commit 41bed59

Please sign in to comment.