Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions bin/node-template/pallets/template/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand Down Expand Up @@ -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
Expand Down