From 470af42bee172ce5bbcd4b2899f1b13e7532ee23 Mon Sep 17 00:00:00 2001 From: xiaoch05 Date: Thu, 14 Apr 2022 14:02:16 +0800 Subject: [PATCH] add api data() for inbound_lane (#1373) --- bridges/modules/messages/src/inbound_lane.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bridges/modules/messages/src/inbound_lane.rs b/bridges/modules/messages/src/inbound_lane.rs index 00875bb878a82..6560df2acd42d 100644 --- a/bridges/modules/messages/src/inbound_lane.rs +++ b/bridges/modules/messages/src/inbound_lane.rs @@ -71,6 +71,11 @@ impl InboundLane { InboundLane { storage } } + /// Get this lane data + pub fn data(&self) -> InboundLaneData { + self.storage.data() + } + /// Receive state of the corresponding outbound lane. pub fn receive_state_update( &mut self,