Skip to content

Commit

Permalink
fmt check
Browse files Browse the repository at this point in the history
  • Loading branch information
TalDerei committed Mar 3, 2024
1 parent f582de8 commit 59a1003
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions crates/core/component/shielded-pool/src/note.rs
Original file line number Diff line number Diff line change
Expand Up @@ -372,8 +372,8 @@ pub fn commitment_from_address(
value: Value,
note_blinding: Fq,
) -> Result<StateCommitment, Error> {
let transmission_key_s =
Fq::from_bytes_checked(&address.transmission_key().0).map_err(|_| Error::InvalidTransmissionKey)?;
let transmission_key_s = Fq::from_bytes_checked(&address.transmission_key().0)
.map_err(|_| Error::InvalidTransmissionKey)?;
let commit = poseidon377::hash_6(
&NOTECOMMIT_DOMAIN_SEP,
(
Expand Down Expand Up @@ -510,7 +510,8 @@ impl TryFrom<&[u8]> for Note {
Value {
amount: Amount::from_le_bytes(amount_bytes),
asset_id: asset::Id(
Fq::from_bytes_checked(&asset_id_bytes).map_err(|_| Error::NoteDeserializationError)?,
Fq::from_bytes_checked(&asset_id_bytes)
.map_err(|_| Error::NoteDeserializationError)?,
),
},
Rseed(rseed_bytes),
Expand Down
2 changes: 1 addition & 1 deletion crates/crypto/tct/src/internal/hash/option.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use std::fmt::Debug;
use decaf377::Fq;
use std::fmt::Debug;

use crate::prelude::*;

Expand Down

0 comments on commit 59a1003

Please sign in to comment.