From 2332a85cc77897de8e5f9e5f6b3d45c49488f218 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 00875bb878a8..6560df2acd42 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,