Skip to content

Commit

Permalink
fix DomainType Proto for ClientState/ConsensusState
Browse files Browse the repository at this point in the history
  • Loading branch information
noot authored and hdevalence committed Dec 21, 2023
1 parent 51cf205 commit 7a363fc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions crates/proto/src/protobuf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,6 @@ impl TryFrom<crate::core::keys::v1alpha1::ConsensusKey> for tendermint::PublicKe
// IBC-rs impls
extern crate ibc_types;

use ibc_proto::google::protobuf::Any;
use ibc_proto::ibc::core::channel::v1::Channel as RawChannel;
use ibc_proto::ibc::core::client::v1::Height as RawHeight;
use ibc_proto::ibc::core::connection::v1::ClientPaths as RawClientPaths;
Expand All @@ -166,6 +165,7 @@ use ibc_types::core::channel::ChannelEnd;
use ibc_types::core::client::Height;
use ibc_types::core::connection::{ClientPaths, ConnectionEnd};
use ibc_types::lightclients::tendermint::client_state::ClientState;
use ibc_types::lightclients::tendermint::consensus_state::ConsensusState;

impl DomainType for ClientPaths {
type Proto = RawClientPaths;
Expand All @@ -183,10 +183,10 @@ impl DomainType for Height {
}

impl DomainType for ClientState {
type Proto = Any;
type Proto = ibc_proto::ibc::lightclients::tendermint::v1::ClientState;
}
impl DomainType for ibc_types::lightclients::tendermint::consensus_state::ConsensusState {
type Proto = Any;
impl DomainType for ConsensusState {
type Proto = ibc_proto::ibc::lightclients::tendermint::v1::ConsensusState;
}

impl<T> From<T> for IbcRelay
Expand Down

0 comments on commit 7a363fc

Please sign in to comment.