Преглед на файлове

bin/dao: minor fix based on recent change in src/error.rs

Dastan-glitch преди 3 години
родител
ревизия
50f6428257
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      bin/dao/daod/src/note.rs

+ 1 - 1
bin/dao/daod/src/note.rs

@@ -47,7 +47,7 @@ impl EncryptedNote2 {
         assert_eq!(
             ChachaPolyIetf::aead_cipher()
                 .open_to(&mut plaintext, &self.ciphertext, &[], key.as_ref(), &[0u8; 12])
-                .map_err(|_| Error::NoteDecryptionFailed)?,
+                .map_err(|e| Error::NoteDecryptionFailed(e.to_string()))?,
             self.ciphertext.len() - AEAD_TAG_SIZE
         );