Skip to content

Commit c571722

Browse files
committed
fix: styels
1 parent b722525 commit c571722

File tree

2 files changed

+20
-7
lines changed

2 files changed

+20
-7
lines changed

llms.txt

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24047,14 +24047,23 @@ Configure the pallets by implementing their `Config` trait and update the runtim
2404724047

2404824048
1. Add the `OriginCaller` import:
2404924049

24050-
```rust title="mod.rs"
24050+
```rust title="mod.rs" hl_lines="3-3"
24051+
...
24052+
// Local module imports
2405124053

24054+
...
2405224055
```
2405324056

2405424057
2. Implement the [`Config`](https://paritytech.github.io/polkadot-sdk/master/pallet_utility/pallet/trait.Config.html){target=\_blank} trait for both pallets at the end of the `runtime/src/config/mod.rs` file:
2405524058

24056-
```rust title="mod.rs"
24057-
impl pallet_utility::Config for Runtime {
24059+
```rust title="mod.rs" hl_lines="7-24"
24060+
...
24061+
type RuntimeEvent = RuntimeEvent;
24062+
type WeightInfo = pallet_parachain_template::weights::SubstrateWeight<Runtime>;
24063+
}
24064+
24065+
// Configure utility pallet.
24066+
impl pallet_utility::Config for Runtime {
2405824067
type RuntimeEvent = RuntimeEvent;
2405924068
type RuntimeCall = RuntimeCall;
2406024069
type PalletsOrigin = OriginCaller;

tutorials/polkadot-sdk/parachains/zero-to-hero/add-pallets-to-runtime.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,15 +42,19 @@ Configure the pallets by implementing their `Config` trait and update the runtim
4242

4343
1. Add the `OriginCaller` import:
4444

45-
```rust title="mod.rs"
45+
```rust title="mod.rs" hl_lines="3-3"
46+
...
47+
// Local module imports
4648
--8<-- 'code/tutorials/polkadot-sdk/parachains/zero-to-hero/runtime/src/configs/mod.rs:56:56'
49+
...
4750
```
4851

4952
2. Implement the [`Config`](https://paritytech.github.io/polkadot-sdk/master/pallet_utility/pallet/trait.Config.html){target=\_blank} trait for both pallets at the end of the `runtime/src/config/mod.rs` file:
5053

51-
```rust title="mod.rs"
52-
--8<-- 'code/tutorials/polkadot-sdk/parachains/zero-to-hero/runtime/src/configs/mod.rs:314:330'
53-
--8<-- 'code/tutorials/polkadot-sdk/parachains/zero-to-hero/runtime/src/configs/mod.rs:332:332'
54+
```rust title="mod.rs" hl_lines="7-24"
55+
...
56+
--8<-- 'code/tutorials/polkadot-sdk/parachains/zero-to-hero/runtime/src/configs/mod.rs:309:330'
57+
--8<-- 'code/tutorials/polkadot-sdk/parachains/zero-to-hero/runtime/src/configs/mod.rs:332:333'
5458
```
5559

5660
3. Locate the `#[frame_support::runtime]` macro in the `runtime/src/lib.rs` file and add the pallets:

0 commit comments

Comments
 (0)