Skip to content

Commit

Permalink
Simplify trait bounds
Browse files Browse the repository at this point in the history
  • Loading branch information
soareschen committed Feb 11, 2025
1 parent bd37cfd commit 24faad4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
use alloc::vec::Vec;

use cgp::prelude::*;
use hermes_chain_type_components::traits::types::height::HasHeightType;
use hermes_chain_type_components::traits::types::ibc::channel_id::HasChannelIdType;
use hermes_chain_type_components::traits::types::ibc::port_id::HasPortIdType;
use hermes_chain_type_components::traits::types::ibc::sequence::HasSequenceType;
Expand All @@ -12,7 +11,7 @@ use hermes_chain_type_components::traits::types::ibc::sequence::HasSequenceType;
}]
#[async_trait]
pub trait CanQueryPacketAcknowledgements<Counterparty>:
HasHeightType + HasChannelIdType<Counterparty> + HasPortIdType<Counterparty> + HasAsyncErrorType
HasChannelIdType<Counterparty> + HasPortIdType<Counterparty> + HasAsyncErrorType
where
Counterparty: HasSequenceType<Self>,
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
use alloc::vec::Vec;

use cgp::prelude::*;
use hermes_chain_type_components::traits::types::height::HasHeightType;
use hermes_chain_type_components::traits::types::ibc::channel_id::HasChannelIdType;
use hermes_chain_type_components::traits::types::ibc::port_id::HasPortIdType;
use hermes_chain_type_components::traits::types::ibc::sequence::HasSequenceType;
Expand All @@ -12,8 +11,7 @@ use hermes_chain_type_components::traits::types::ibc::sequence::HasSequenceType;
}]
#[async_trait]
pub trait CanQueryPacketCommitments<Counterparty>:
HasHeightType
+ HasChannelIdType<Counterparty>
HasChannelIdType<Counterparty>
+ HasPortIdType<Counterparty>
+ HasSequenceType<Counterparty>
+ HasAsyncErrorType
Expand Down

0 comments on commit 24faad4

Please sign in to comment.