From 3849801781286dce56a4406388c901e849cb4363 Mon Sep 17 00:00:00 2001 From: Cosmin Damian <17934949+cdamian@users.noreply.github.com> Date: Sat, 17 Aug 2024 00:43:53 +0300 Subject: [PATCH] lp-gateway: Create correct inbound entry type --- .../liquidity-pools-gateway/src/message_processing.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pallets/liquidity-pools-gateway/src/message_processing.rs b/pallets/liquidity-pools-gateway/src/message_processing.rs index 90075e9356..c21167a02a 100644 --- a/pallets/liquidity-pools-gateway/src/message_processing.rs +++ b/pallets/liquidity-pools-gateway/src/message_processing.rs @@ -96,17 +96,17 @@ impl InboundEntry { expected_proof_count: u32, ) -> Self { if message.is_proof_message() { + InboundEntry::Proof(ProofEntry { + session_id, + current_count: 1, + }) + } else { InboundEntry::Message(MessageEntry { session_id, domain_address, message, expected_proof_count, }) - } else { - InboundEntry::Proof(ProofEntry { - session_id, - current_count: 1, - }) } }