fixed a comment in the system pallet (#14466)

This commit is contained in:
Pato
2023-08-09 06:37:22 -03:00
committed by GitHub
parent 4849b6e865
commit 47dc310f44
+1 -1
View File
@@ -1297,7 +1297,7 @@ impl<T: Config> Pallet<T> {
let phase = ExecutionPhase::<T>::get().unwrap_or_default();
let event = EventRecord { phase, event, topics: topics.to_vec() };
// Index of the to be added event.
// Index of the event to be added.
let event_idx = {
let old_event_count = EventCount::<T>::get();
let new_event_count = match old_event_count.checked_add(1) {