From db300b5f8a83c9f4a0e1a0105506a671ad810de4 Mon Sep 17 00:00:00 2001 From: Shawn Tabrizi Date: Sat, 3 Aug 2024 21:37:10 -0400 Subject: [PATCH] fix high level template --- steps/3/README.md | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/steps/3/README.md b/steps/3/README.md index 5cbefa1a..908016e1 100644 --- a/steps/3/README.md +++ b/steps/3/README.md @@ -87,20 +87,21 @@ We will go over each of the FRAME macros throughout this tutorial While the template is already very minimal, you can mentally break it down like: ```rust +use frame::prelude::*; pub use pallet::*; #[frame::pallet] pub mod pallet { - use frame::prelude::*; + use super::*; - #[pallet::pallet] - pub struct Pallet(core::marker::PhantomData); + #[pallet::pallet] + pub struct Pallet(core::marker::PhantomData); - #[pallet::config] // snip - #[pallet::event] // snip - #[pallet::error] // snip - #[pallet::storage] // snip - #[pallet::call] // snip + #[pallet::config] // snip + #[pallet::event] // snip + #[pallet::error] // snip + #[pallet::storage] // snip + #[pallet::call] // snip } ```