mirror of
https://github.com/darkrenaissance/darkfi.git
synced 2026-01-08 22:28:12 -05:00
bin/dao: minor fix based on recent change in src/error.rs
This commit is contained in:
@@ -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
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user