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)) }