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 27, 2025
1 parent abba5de commit afcfdd0
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

Check failure on line 27 in ibc-clients/cw-context/src/api.rs

View workflow job for this annotation

GitHub Actions / Test MSRV for `ibc` libraries (ubuntu-latest, unknown-linux-gnu)

`<<T as api::ClientType<'_>>::ClientState as TryFrom<ibc_core::primitives::proto::Any>>::Error` doesn't implement `derive_more::Display`

Check failure on line 27 in ibc-clients/cw-context/src/api.rs

View workflow job for this annotation

GitHub Actions / Test MSRV for `ibc` libraries (ubuntu-latest, unknown-linux-gnu)

`<<T as api::ClientType<'_>>::ConsensusState as TryFrom<ibc_core::primitives::proto::Any>>::Error` doesn't implement `derive_more::Display`

Check failure on line 27 in ibc-clients/cw-context/src/api.rs

View workflow job for this annotation

GitHub Actions / Test MSRV for `ibc` libraries (ubuntu-latest, unknown-linux-gnu)

`<<T as api::ClientType<'_>>::ClientState as TryFrom<ibc_core::primitives::proto::Any>>::Error` doesn't implement `derive_more::Display`

Check failure on line 27 in ibc-clients/cw-context/src/api.rs

View workflow job for this annotation

GitHub Actions / Test MSRV for `ibc` libraries (ubuntu-latest, unknown-linux-gnu)

`<<T as api::ClientType<'_>>::ConsensusState as TryFrom<ibc_core::primitives::proto::Any>>::Error` doesn't implement `derive_more::Display`
where
T: ClientType<'a>,

Check failure on line 29 in ibc-clients/cw-context/src/api.rs

View workflow job for this annotation

GitHub Actions / Test MSRV for `ibc` libraries (ubuntu-latest, unknown-linux-gnu)

`<<T as api::ClientType<'a>>::ClientState as TryFrom<ibc_core::primitives::proto::Any>>::Error` doesn't implement `derive_more::Display`

Check failure on line 29 in ibc-clients/cw-context/src/api.rs

View workflow job for this annotation

GitHub Actions / Test MSRV for `ibc` libraries (ubuntu-latest, unknown-linux-gnu)

`<<T as api::ClientType<'a>>::ConsensusState as TryFrom<ibc_core::primitives::proto::Any>>::Error` doesn't implement `derive_more::Display`

Check failure on line 29 in ibc-clients/cw-context/src/api.rs

View workflow job for this annotation

GitHub Actions / Test MSRV for `ibc` libraries (ubuntu-latest, unknown-linux-gnu)

`<<T as api::ClientType<'a>>::ClientState as TryFrom<ibc_core::primitives::proto::Any>>::Error` doesn't implement `derive_more::Display`

Check failure on line 29 in ibc-clients/cw-context/src/api.rs

View workflow job for this annotation

GitHub Actions / Test MSRV for `ibc` libraries (ubuntu-latest, unknown-linux-gnu)

`<<T as api::ClientType<'a>>::ConsensusState as TryFrom<ibc_core::primitives::proto::Any>>::Error` doesn't implement `derive_more::Display`
<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 afcfdd0

Please sign in to comment.