Skip to content

Commit

Permalink
feature(soratopia): add CheckIn event
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexey-N-Chernyshov committed Oct 24, 2024
1 parent 58c51a4 commit 49fad36
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pallets/soratopia/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,9 @@ pub mod pallet {
}

#[pallet::event]
pub enum Event<T: Config> {}
pub enum Event<T: Config> {
CheckIn(AccountIdOf<T>),

Check failure

Code scanning / clippy

cannot find type AccountIdOf in this scope Error

cannot find type AccountIdOf in this scope
}

#[pallet::error]
pub enum Error<T> {}
Expand All @@ -96,6 +98,7 @@ pub mod pallet {
&T::AdminAccount::get(),
T::CheckInTransferAmount::get(),
)?;
Self::deposit_event(Event::CheckIn(who));
Ok(().into())
}
}
Expand Down

0 comments on commit 49fad36

Please sign in to comment.