Skip to content

Commit

Permalink
Lets see BridgeId in the logs
Browse files Browse the repository at this point in the history
  • Loading branch information
bkontur committed Sep 6, 2024
1 parent e939b16 commit c17b33b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion bridges/primitives/xcm-bridge-hub/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ pub type XcmAsPlainPayload = sp_std::vec::Vec<u8>;
Ord,
PartialOrd,
PartialEq,
RuntimeDebug,
TypeInfo,
MaxEncodedLen,
Serialize,
Expand All @@ -90,6 +89,12 @@ impl BridgeId {
}
}

impl core::fmt::Debug for BridgeId {
fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
core::fmt::Debug::fmt(&self.0, f)
}
}

/// Local XCM channel manager.
pub trait LocalXcmChannelManager {
/// Error that may be returned when suspending/resuming the bridge.
Expand Down

0 comments on commit c17b33b

Please sign in to comment.