Skip to content

Commit

Permalink
Fixes doc lint
Browse files Browse the repository at this point in the history
  • Loading branch information
grarco committed Sep 15, 2024
1 parent b634d91 commit 5d5e9db
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions crates/shielded_token/src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,11 @@ pub fn handle_masp_tx(
Ok(())
}

/// Check if a transaction was a MASP transfer transaction by looking at the
/// changed keys. We cannot simply check that the MASP VP was triggered, as this
/// can be manually requested to be triggered by users.
/// Check if a transaction is a MASP transfer transaction.
///
/// We do that by looking at the changed keys. We cannot simply check that the
/// MASP VP was triggered, as this can be manually requested to be triggered by
/// users.
pub fn is_masp_transfer(changed_keys: &BTreeSet<Key>) -> bool {
changed_keys.iter().any(is_masp_transfer_key)
}

0 comments on commit 5d5e9db

Please sign in to comment.