From 731577f97e98143bd6e1bdb9ddd40f0aafd7e6de Mon Sep 17 00:00:00 2001 From: Cosmin Damian <17934949+cdamian@users.noreply.github.com> Date: Wed, 9 Oct 2024 12:10:43 +0300 Subject: [PATCH] pallet: Rename event --- pallets/liquidity-pools-gateway-queue/src/lib.rs | 4 ++-- pallets/liquidity-pools-gateway-queue/src/tests.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pallets/liquidity-pools-gateway-queue/src/lib.rs b/pallets/liquidity-pools-gateway-queue/src/lib.rs index 0bef83116d..b454ce5a7b 100644 --- a/pallets/liquidity-pools-gateway-queue/src/lib.rs +++ b/pallets/liquidity-pools-gateway-queue/src/lib.rs @@ -100,7 +100,7 @@ pub mod pallet { }, /// Maximum number of messages was reached. - MaxNumberOfMessagesWasReached { + MaxNumberOfMessagesReached { last_processed_nonce: T::MessageNonce, }, } @@ -217,7 +217,7 @@ pub mod pallet { loop { if last_processed_nonce.ensure_add_assign(One::one()).is_err() { - Self::deposit_event(Event::::MaxNumberOfMessagesWasReached { + Self::deposit_event(Event::::MaxNumberOfMessagesReached { last_processed_nonce, }); diff --git a/pallets/liquidity-pools-gateway-queue/src/tests.rs b/pallets/liquidity-pools-gateway-queue/src/tests.rs index 4eba1097d4..18e56ea0b7 100644 --- a/pallets/liquidity-pools-gateway-queue/src/tests.rs +++ b/pallets/liquidity-pools-gateway-queue/src/tests.rs @@ -323,7 +323,7 @@ mod on_idle { let _ = Queue::on_idle(0, TOTAL_WEIGHT); - event_exists(Event::::MaxNumberOfMessagesWasReached { + event_exists(Event::::MaxNumberOfMessagesReached { last_processed_nonce: u64::MAX, }) });