diff --git a/bin/node-template/pallets/template/src/lib.rs b/bin/node-template/pallets/template/src/lib.rs index 1f82857c43e47..5971c23acdf7d 100644 --- a/bin/node-template/pallets/template/src/lib.rs +++ b/bin/node-template/pallets/template/src/lib.rs @@ -10,6 +10,7 @@ /// https://github.com/paritytech/substrate/blob/master/frame/example/src/lib.rs use frame_support::{decl_module, decl_storage, decl_event, decl_error, dispatch}; +use frame_support::weights::Weight; use frame_system::{self as system, ensure_signed}; #[cfg(test)] @@ -72,6 +73,14 @@ decl_module! { // this is needed only if you are using events in your pallet fn deposit_event() = default; + fn on_initialize() -> Weight { + 0 + } + + fn on_initialize() -> Weight { + 0 + } + /// Just a dummy entry point. /// function that can be called by the external world as an extrinsics call /// takes a parameter of the type `AccountId`, stores it, and emits an event