Skip to content

Commit 8b87a0e

Browse files
yrongclaravanstadenvgeddesacatangiu
authored
Snowbridge - Change the hash of the outbound queue PendingOrders storage item (paritytech#8024)
Signed-off-by: Adrian Catangiu <[email protected]> Co-authored-by: claravanstaden <[email protected]> Co-authored-by: Vincent Geddes <[email protected]> Co-authored-by: Adrian Catangiu <[email protected]>
1 parent e869829 commit 8b87a0e

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

bridges/snowbridge/pallets/outbound-queue-v2/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ pub mod pallet {
227227
/// Pending orders to relay
228228
#[pallet::storage]
229229
pub type PendingOrders<T: Config> =
230-
StorageMap<_, Identity, u64, PendingOrder<BlockNumberFor<T>>, OptionQuery>;
230+
StorageMap<_, Twox64Concat, u64, PendingOrder<BlockNumberFor<T>>, OptionQuery>;
231231

232232
#[pallet::hooks]
233233
impl<T: Config> Hooks<BlockNumberFor<T>> for Pallet<T> {

prdoc/pr_8024.prdoc

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
title: Change the hash of `PendingOrders` storage item
2+
doc:
3+
- audience: [Runtime Dev, Node Dev]
4+
description: |-
5+
Change the hash to `Twox64Concat`, which is more secure than `Identity`.
6+
crates:
7+
- name: snowbridge-pallet-outbound-queue-v2
8+
bump: patch
9+

0 commit comments

Comments
 (0)