We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cc8be97 commit 892b275Copy full SHA for 892b275
bin/node-template/pallets/template/src/lib.rs
@@ -45,7 +45,7 @@ pub mod pallet {
45
pub enum Event<T: Config> {
46
/// Event documentation should end with an array that provides descriptive names for event
47
/// parameters. [something, who]
48
- SomethingStored(u32, T::AccountId),
+ SomethingStored { something: u32, who: T::AccountId },
49
}
50
51
// Errors inform users that something went wrong.
@@ -75,7 +75,7 @@ pub mod pallet {
75
<Something<T>>::put(something);
76
77
// Emit an event.
78
- Self::deposit_event(Event::SomethingStored(something, who));
+ Self::deposit_event(Event::SomethingStored { something, who });
79
// Return a successful DispatchResultWithPostInfo
80
Ok(())
81
0 commit comments