You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: llms.txt
+12-3Lines changed: 12 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -24308,14 +24308,23 @@ Configure the pallets by implementing their `Config` trait and update the runtim
24308
24308
24309
24309
1. Add the `OriginCaller` import:
24310
24310
24311
-
```rust
24311
+
```rust title="mod.rs" hl_lines="3-3"
24312
+
...
24313
+
// Local module imports
24312
24314
24315
+
...
24313
24316
```
24314
24317
24315
24318
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:
24316
24319
24317
-
```rust title="mod.rs"
24318
-
impl pallet_utility::Config for Runtime {
24320
+
```rust title="mod.rs" hl_lines="7-24"
24321
+
...
24322
+
type RuntimeEvent = RuntimeEvent;
24323
+
type WeightInfo = pallet_parachain_template::weights::SubstrateWeight<Runtime>;
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:
0 commit comments