referrerpolicy=no-referrer-when-downgrade

Function pallet_template::pallet::dispatchables::do_something

source ·
pub fn do_something<T: Config>(something: u32)
Expand description

An example dispatchable that takes a single u32 value as a parameter, writes the value to storage and emits an event.

It checks that the origin for this call is Signed and returns a dispatch error if it isn’t. Learn more about origins here: https://docs.substrate.io/build/origins/

§Warning: Doc-Only

This function is an automatically generated, and is doc-only, uncallable stub. See the real version in Pallet::do_something.