Skip to content

Commit

Permalink
pallet: Rename event
Browse files Browse the repository at this point in the history
  • Loading branch information
cdamian committed Oct 9, 2024
1 parent a437056 commit 731577f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pallets/liquidity-pools-gateway-queue/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ pub mod pallet {
},

/// Maximum number of messages was reached.
MaxNumberOfMessagesWasReached {
MaxNumberOfMessagesReached {
last_processed_nonce: T::MessageNonce,
},
}
Expand Down Expand Up @@ -217,7 +217,7 @@ pub mod pallet {

loop {
if last_processed_nonce.ensure_add_assign(One::one()).is_err() {
Self::deposit_event(Event::<T>::MaxNumberOfMessagesWasReached {
Self::deposit_event(Event::<T>::MaxNumberOfMessagesReached {
last_processed_nonce,
});

Expand Down
2 changes: 1 addition & 1 deletion pallets/liquidity-pools-gateway-queue/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ mod on_idle {

let _ = Queue::on_idle(0, TOTAL_WEIGHT);

event_exists(Event::<Runtime>::MaxNumberOfMessagesWasReached {
event_exists(Event::<Runtime>::MaxNumberOfMessagesReached {
last_processed_nonce: u64::MAX,
})
});
Expand Down

0 comments on commit 731577f

Please sign in to comment.