Skip to content

Commit

Permalink
Removed resolved FIXME comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmitry Demin committed Jul 30, 2024
1 parent 4b82e56 commit 98d6087
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/note_encryption/compact_action.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ impl<A, D: OrchardDomainCommon> ShieldedOutput<OrchardDomain<D>> for Action<A, D
}

fn enc_ciphertext_compact(&self) -> D::CompactNoteCiphertextBytes {
// FIXME: can use unwrap here?
D::CompactNoteCiphertextBytes::from_slice(
&self.encrypted_note().enc_ciphertext.as_ref()[..D::COMPACT_NOTE_SIZE],
)
Expand Down Expand Up @@ -74,9 +73,7 @@ impl<D: OrchardDomainCommon> ShieldedOutput<OrchardDomain<D>> for CompactAction<
None
}

// FIXME: shouldn't it return None like enc_ciphertext does?
fn enc_ciphertext_compact(&self) -> D::CompactNoteCiphertextBytes {
// FIXME: can use unwrap here?
D::CompactNoteCiphertextBytes::from_slice(self.enc_ciphertext.as_ref()).unwrap()
}
}
Expand Down

0 comments on commit 98d6087

Please sign in to comment.