👍Runtime Events
How to tell someone using your blockchain something happened.
Right, so my pallet should be able to emit Events?
In the Pallet
type Event
// Note: this is the pallet-required `Configuration Trait`
pub trait Config: frame_system::Config {
// copy the line below exactly as shown into the `Config` section
// of your `Pallet`. You'll eventually be able to interpret that
// if you don't lnow. Just keep truckin'.
type Event: From<Event> + Into<<Self as frame_system::Config>::Event>;
}decl_module!
decl_event!
In the Runtime
Last updated