Skip to content

Commit

Permalink
fix high level template
Browse files Browse the repository at this point in the history
  • Loading branch information
shawntabrizi committed Aug 4, 2024
1 parent 05057ba commit db300b5
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions steps/3/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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<T>(core::marker::PhantomData<T>);
#[pallet::pallet]
pub struct Pallet<T>(core::marker::PhantomData<T>);

#[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
}
```

Expand Down

0 comments on commit db300b5

Please sign in to comment.