From 7c4c62ba99d99e479e9cf5761f901efb5fffef9e Mon Sep 17 00:00:00 2001 From: Nazar Mokrynskyi Date: Thu, 22 Aug 2024 22:59:12 +0300 Subject: [PATCH 1/2] Derive `Clone` on `EncodableOpaqueLeaf` --- prdoc/pr_5442.prdoc | 3 +++ substrate/primitives/merkle-mountain-range/src/lib.rs | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 prdoc/pr_5442.prdoc diff --git a/prdoc/pr_5442.prdoc b/prdoc/pr_5442.prdoc new file mode 100644 index 000000000000..4867a2e0153a --- /dev/null +++ b/prdoc/pr_5442.prdoc @@ -0,0 +1,3 @@ +crates: + - name: sp-mmr-primitives + bump: patch diff --git a/substrate/primitives/merkle-mountain-range/src/lib.rs b/substrate/primitives/merkle-mountain-range/src/lib.rs index 3740047e0278..061e5dbb6c7d 100644 --- a/substrate/primitives/merkle-mountain-range/src/lib.rs +++ b/substrate/primitives/merkle-mountain-range/src/lib.rs @@ -144,7 +144,7 @@ impl FullLeaf for OpaqueLeaf { /// /// It is different from [`OpaqueLeaf`], because it does implement `Codec` /// and the encoding has to match raw `Vec` encoding. -#[derive(codec::Encode, codec::Decode, RuntimeDebug, PartialEq, Eq, TypeInfo)] +#[derive(codec::Encode, codec::Decode, RuntimeDebug, Clone, PartialEq, Eq, TypeInfo)] pub struct EncodableOpaqueLeaf(pub Vec); impl EncodableOpaqueLeaf { From 39ae7436f11e5bdfab0a46267a5dec66d800de12 Mon Sep 17 00:00:00 2001 From: Nazar Mokrynskyi Date: Fri, 23 Aug 2024 15:25:08 +0300 Subject: [PATCH 2/2] Update prdoc --- prdoc/pr_5442.prdoc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/prdoc/pr_5442.prdoc b/prdoc/pr_5442.prdoc index 4867a2e0153a..6adc34d71ad3 100644 --- a/prdoc/pr_5442.prdoc +++ b/prdoc/pr_5442.prdoc @@ -1,3 +1,10 @@ +title: Derive `Clone` on `EncodableOpaqueLeaf` + +doc: + - audience: Runtime Dev + description: | + `Clone` was derived on `EncodableOpaqueLeaf` for convenience of downstream users + crates: - name: sp-mmr-primitives bump: patch