diff --git a/crates/pop-parachains/templates/pallet/src/benchmarking.rs.templ b/crates/pop-parachains/templates/pallet/src/benchmarking.rs.templ index 8bba2a09..f3b0b0ec 100644 --- a/crates/pop-parachains/templates/pallet/src/benchmarking.rs.templ +++ b/crates/pop-parachains/templates/pallet/src/benchmarking.rs.templ @@ -1,5 +1,7 @@ //! Benchmarking setup for pallet-parachain-template +// https://docs.substrate.io/test/benchmark/ + use super::*; #[allow(unused)] diff --git a/crates/pop-parachains/templates/pallet/src/lib.rs.templ b/crates/pop-parachains/templates/pallet/src/lib.rs.templ index 5f3252bf..1aee19db 100644 --- a/crates/pop-parachains/templates/pallet/src/lib.rs.templ +++ b/crates/pop-parachains/templates/pallet/src/lib.rs.templ @@ -2,7 +2,7 @@ /// Edit this file to define custom logic or remove it if it is not needed. /// Learn more about FRAME and the core library of Substrate FRAME pallets: -/// +/// pub use pallet::*; #[cfg(test)] @@ -30,15 +30,13 @@ pub mod pallet { pub struct Pallet(_); // The pallet's runtime storage items. - // https://docs.substrate.io/v3/runtime/storage + // https://docs.substrate.io/build/runtime-storage/ #[pallet::storage] #[pallet::getter(fn something)] - // Learn more about declaring storage items: - // https://docs.substrate.io/v3/runtime/storage#declaring-storage-items pub type Something = StorageValue<_, u32>; // Pallets use events to inform users when important changes are made. - // https://docs.substrate.io/v3/runtime/events-and-errors + // https://docs.substrate.io/build/events-and-errors/ #[pallet::event] #[pallet::generate_deposit(pub(super) fn deposit_event)] pub enum Event { @@ -71,7 +69,7 @@ pub mod pallet { pub fn do_something(origin: OriginFor, something: u32) -> DispatchResultWithPostInfo { // Check that the extrinsic was signed and get the signer. // This function will return an error if the extrinsic is not signed. - // https://docs.substrate.io/v3/runtime/origins + // https://docs.substrate.io/build/origins/ let who = ensure_signed(origin)?; // Update storage. diff --git a/crates/pop-parachains/templates/pallet/src/tests.rs.templ b/crates/pop-parachains/templates/pallet/src/tests.rs.templ index 62bbfbac..e43242ef 100644 --- a/crates/pop-parachains/templates/pallet/src/tests.rs.templ +++ b/crates/pop-parachains/templates/pallet/src/tests.rs.templ @@ -1,6 +1,8 @@ use crate::{mock::*, Error}; use frame_support::{assert_noop, assert_ok}; +// https://docs.substrate.io/test/ + #[test] fn it_works_for_default_value() { new_test_ext().execute_with(|| {