Skip to content

Commit

Permalink
fix tendermint cw compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
rnbguy committed Jan 24, 2025
1 parent 241de51 commit 4d21865
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions ibc-clients/cw-context/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ prost = { workspace = true }
# ibc dependencies
ibc-core = { workspace = true }
ibc-client-wasm-types = { workspace = true, features = [ "schema" ] }
ibc-client-tendermint = { workspace = true }

# cosmwasm dependencies
cosmwasm-schema = { workspace = true }
Expand Down
13 changes: 13 additions & 0 deletions ibc-clients/cw-context/src/api.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
use core::fmt::Display;

use ibc_client_tendermint::client_state::ClientState as TmClientState;
use ibc_core::client::context::client_state::ClientStateExecution;
use ibc_core::client::context::consensus_state::ConsensusState as ConsensusStateTrait;
use ibc_core::primitives::proto::Any;
Expand All @@ -22,3 +23,15 @@ where
pub trait CwClientStateExecution<'a, E: CwClientExecution<'a>>: ClientStateExecution<E> {
fn public_key(&self) -> Option<Vec<u8>>;
}

impl<'a, T> CwClientStateExecution<'a, Context<'a, T>> for TmClientState
where
T: ClientType<'a>,
<T as ClientType<'a>>::ClientState: From<ibc_client_tendermint::types::ClientState>,
<T as ClientType<'a>>::ConsensusState: From<ibc_client_tendermint::types::ConsensusState>,
ibc_client_tendermint::types::ConsensusState: From<<T as ClientType<'a>>::ConsensusState>,
{
fn public_key(&self) -> Option<Vec<u8>> {
None
}
}

0 comments on commit 4d21865

Please sign in to comment.