Skip to content

Commit 18ed309

Browse files
ndkazuggwpezbkchr
authored
Pallet Name Customisation (paritytech#4806)
Added Instructions for pallet name customisation in the ReadMe --------- Signed-off-by: Oliver Tale-Yazdi <[email protected]> Co-authored-by: Oliver Tale-Yazdi <[email protected]> Co-authored-by: Bastian Köcher <[email protected]>
1 parent 18228a9 commit 18ed309

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

templates/minimal/README.md

+15
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,21 @@ A Polkadot SDK based project such as this one consists of:
3737
* 🛠️ Depending on your operating system and Rust version, there might be additional
3838
packages required to compile this template - please take note of the Rust compiler output.
3939

40+
## Customization
41+
42+
In case you would like to change the pallet's name from `pallet-minimal-template` to `pallet-test`,
43+
you would need to implement the following changes:
44+
* Change the pallet folder name from `template` to `test` for consistency
45+
* Also for consistency, in `/runtime/src/lib.rs`, change from `pub type Template` to `pub type Test`,
46+
and don't forget to also customize the corresponding comments.
47+
* Change `pallet-minimal-template` to `pallet-test` in the following files:
48+
* `/runtime/Cargo.toml`
49+
* `/runtime/src/lib.rs`
50+
* `/pallets/test/Cargo.toml`
51+
* `/src/lib.rs`
52+
* Change `pallet_minimal_template` to `pallet_test` in the following files:
53+
* `/runtime/src/lib.rs`
54+
4055
### Build
4156

4257
🔨 Use the following command to build the node without launching it:

0 commit comments

Comments
 (0)