Skip to content

Commit 497f13d

Browse files
committed
fix: copilot suggestions
1 parent b88164a commit 497f13d

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

llms.txt

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33420,7 +33420,7 @@ fn reset_counter_works() {
3342033420
// First increment the counter
3342133421
assert_ok!(CustomPallet::increment(RuntimeOrigin::signed(1), 1));
3342233422

33423-
// Ensure the event matches the decrement action
33423+
// Ensure the event matches the increment action
3342433424
System::assert_last_event(
3342533425
Event::CounterIncremented {
3342633426
counter_value: 1,
@@ -33457,7 +33457,7 @@ Ensure that your tests pass by running:
3345733457
cargo test --package custom-pallet
3345833458
```
3345933459

33460-
### Update the Runtime
33460+
### Update Runtime Configuration
3346133461

3346233462
Since you've only added new functionality without changing existing APIs, minimal runtime changes are needed. However, verify that your runtime configuration is still compatible. If you've added new configuration parameters to your pallet, update them accordingly in the `runtime/configs/mod.rs`.
3346333463

@@ -33526,29 +33526,29 @@ If you can see the following elements, it means that you are ready to submit the
3352633526
You can submit a runtime upgrade using the [Sudo pallet](https://paritytech.github.io/polkadot-sdk/master/pallet_sudo/index.html){target=\_blank} (for development chains) or via on-chain governance (for production chains).
3352733527

3352833528
1. Open [Polkadot.js Apps](https://polkadot.js.org/apps/){target=\_blank} and connect to your node
33529-
3. Click on the **Developer** and select the **Extrinsics** option in the dropdown
33529+
2. Click on the **Developer** and select the **Extrinsics** option in the dropdown
3353033530

3353133531
![](/images/tutorials/polkadot-sdk/parachains/zero-to-hero/runtime-upgrade/runtime-upgrade-02.webp)
3353233532

33533-
4. Prepare the **sudo** call:
33533+
3. Prepare the **sudo** call:
3353433534
1. Select the **sudo** pallet
3353533535
2. Select the **sudo(call)** extrinsic from the list
3353633536

3353733537
![](/images/tutorials/polkadot-sdk/parachains/zero-to-hero/runtime-upgrade/runtime-upgrade-03.webp)
3353833538

33539-
5. In the **sudo** call:
33539+
4. In the **sudo** call:
3354033540
1. Select the **system** call
3354133541
2. Select **setCode** extrinsic from the list
3354233542

3354333543
![](/images/tutorials/polkadot-sdk/parachains/zero-to-hero/runtime-upgrade/runtime-upgrade-04.webp)
3354433544

33545-
6. For the `code` parameter, click **file upload** and select your WASM runtime file:
33545+
5. For the `code` parameter, click **file upload** and select your WASM runtime file:
3354633546
- Use `parachain_template_runtime.compact.compressed.wasm` if available (smaller file)
3354733547
- Otherwise, use `parachain_template_runtime.wasm`
3354833548

3354933549
![](/images/tutorials/polkadot-sdk/parachains/zero-to-hero/runtime-upgrade/runtime-upgrade-05.webp)
3355033550

33551-
7. Click **Submit Transaction** and sign the transaction with the sudo key
33551+
6. Click **Submit Transaction** and sign the transaction with the sudo key
3355233552

3355333553
![](/images/tutorials/polkadot-sdk/parachains/zero-to-hero/runtime-upgrade/runtime-upgrade-06.webp)
3355433554

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ fn reset_counter_works() {
7676
// First increment the counter
7777
assert_ok!(CustomPallet::increment(RuntimeOrigin::signed(1), 1));
7878

79-
// Ensure the event matches the decrement action
79+
// Ensure the event matches the increment action
8080
System::assert_last_event(
8181
Event::CounterIncremented {
8282
counter_value: 1,
@@ -113,7 +113,7 @@ Ensure that your tests pass by running:
113113
cargo test --package custom-pallet
114114
```
115115

116-
### Update the Runtime
116+
### Update Runtime Configuration
117117

118118
Since you've only added new functionality without changing existing APIs, minimal runtime changes are needed. However, verify that your runtime configuration is still compatible. If you've added new configuration parameters to your pallet, update them accordingly in the `runtime/configs/mod.rs`.
119119

@@ -176,29 +176,29 @@ If you can see the following elements, it means that you are ready to submit the
176176
You can submit a runtime upgrade using the [Sudo pallet](https://paritytech.github.io/polkadot-sdk/master/pallet_sudo/index.html){target=\_blank} (for development chains) or via on-chain governance (for production chains).
177177

178178
1. Open [Polkadot.js Apps](https://polkadot.js.org/apps/){target=\_blank} and connect to your node
179-
3. Click on the **Developer** and select the **Extrinsics** option in the dropdown
179+
2. Click on the **Developer** and select the **Extrinsics** option in the dropdown
180180

181181
![](/images/tutorials/polkadot-sdk/parachains/zero-to-hero/runtime-upgrade/runtime-upgrade-02.webp)
182182

183-
4. Prepare the **sudo** call:
183+
3. Prepare the **sudo** call:
184184
1. Select the **sudo** pallet
185185
2. Select the **sudo(call)** extrinsic from the list
186186

187187
![](/images/tutorials/polkadot-sdk/parachains/zero-to-hero/runtime-upgrade/runtime-upgrade-03.webp)
188188

189-
5. In the **sudo** call:
189+
4. In the **sudo** call:
190190
1. Select the **system** call
191191
2. Select **setCode** extrinsic from the list
192192

193193
![](/images/tutorials/polkadot-sdk/parachains/zero-to-hero/runtime-upgrade/runtime-upgrade-04.webp)
194194

195-
6. For the `code` parameter, click **file upload** and select your WASM runtime file:
195+
5. For the `code` parameter, click **file upload** and select your WASM runtime file:
196196
- Use `parachain_template_runtime.compact.compressed.wasm` if available (smaller file)
197197
- Otherwise, use `parachain_template_runtime.wasm`
198198

199199
![](/images/tutorials/polkadot-sdk/parachains/zero-to-hero/runtime-upgrade/runtime-upgrade-05.webp)
200200

201-
7. Click **Submit Transaction** and sign the transaction with the sudo key
201+
6. Click **Submit Transaction** and sign the transaction with the sudo key
202202

203203
![](/images/tutorials/polkadot-sdk/parachains/zero-to-hero/runtime-upgrade/runtime-upgrade-06.webp)
204204

0 commit comments

Comments
 (0)