From 91466fe33fa7f6dbdc124fcfa3686f2dc915fbd7 Mon Sep 17 00:00:00 2001 From: Paul Date: Sun, 22 May 2022 14:23:43 +0300 Subject: [PATCH] updated derive for note_type --- src/note/note_type.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/note/note_type.rs b/src/note/note_type.rs index 65dab29c..3ecc6f39 100644 --- a/src/note/note_type.rs +++ b/src/note/note_type.rs @@ -37,8 +37,8 @@ impl NoteType { pub(super) fn derive(ak: &SpendValidatingKey, assetDesc: &[u8; 64]) -> Self { let mut s = vec![]; - s.extend_from_slice(&ak.to_bytes()); - s.extend_from_slice(assetDesc); + s.extend(&ak.to_bytes()); + s.extend(assetDesc); NoteType(assetID_hasher(s)) }