Skip to content

Commit

Permalink
fix re-export error
Browse files Browse the repository at this point in the history
  • Loading branch information
rnbguy committed Jul 29, 2024
1 parent 3d66445 commit 5e3e24a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions light-client/types/src/client_state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use ibc_core::client::types::error::ClientError;
use ibc_core::client::types::Height;
use ibc_core::primitives::proto::{Any, Protobuf};

pub const TYPE_URL: &str = "/DummyClientState";
pub const CLIENT_STATE_TYPE_URL: &str = "/DummyClientState";

#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
#[derive(Clone, Debug, PartialEq, derive_more::From)]
Expand All @@ -16,7 +16,7 @@ impl TryFrom<Any> for ClientState {
type Error = ClientError;

fn try_from(raw: Any) -> Result<Self, Self::Error> {
if raw.type_url != TYPE_URL {
if raw.type_url != CLIENT_STATE_TYPE_URL {
return Err(ClientError::UnknownClientStateType {
client_state_type: raw.type_url,
});
Expand Down
4 changes: 2 additions & 2 deletions light-client/types/src/consensus_state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use ibc_core::client::types::error::ClientError;
use ibc_core::commitment_types::commitment::CommitmentRoot;
use ibc_core::primitives::proto::{Any, Protobuf};

pub const TYPE_URL: &str = "/DummyConsensusState";
pub const CONSENSUS_STATE_TYPE_URL: &str = "/DummyConsensusState";

#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
#[derive(Clone, Debug, PartialEq, derive_more::From)]
Expand Down Expand Up @@ -30,7 +30,7 @@ impl TryFrom<Any> for ConsensusState {
type Error = ClientError;

fn try_from(raw: Any) -> Result<Self, Self::Error> {
if raw.type_url != TYPE_URL || !raw.value.is_empty() {
if raw.type_url != CONSENSUS_STATE_TYPE_URL || !raw.value.is_empty() {
return Err(ClientError::UnknownConsensusStateType {
consensus_state_type: raw.type_url,
});
Expand Down

0 comments on commit 5e3e24a

Please sign in to comment.