Skip to content

Commit

Permalink
nits
Browse files Browse the repository at this point in the history
  • Loading branch information
Daksh14 committed Nov 13, 2024
1 parent 85b6499 commit 738bcc6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
6 changes: 3 additions & 3 deletions rusk-wallet/src/bin/command/history.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,10 @@ pub(crate) async fn transaction_from_notes(
let note_hash = decoded_note.note.hash();
// Looking for the transaction which created the note
let note_creator = txs.iter_mut().find(|tx_block| {
let t = &tx_block.tx;
let tx = &tx_block.tx;

t.outputs().iter().any(|note| note.hash().eq(&note_hash))
|| t.nullifiers().iter().any(|tx_null| {
tx.outputs().iter().any(|note| note.hash().eq(&note_hash))
|| tx.nullifiers().iter().any(|tx_null| {
nullifiers.iter().any(|(nullifier, _)| nullifier == tx_null)
})
});
Expand Down
4 changes: 1 addition & 3 deletions rusk-wallet/src/bin/io/prompt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -387,9 +387,7 @@ pub(crate) fn request_nonce() -> anyhow::Result<u64> {

/// Request Dusk block explorer to be opened
pub(crate) fn launch_explorer(url: String) -> Result<()> {
let q = Confirm::new("Launch block explorer?").prompt()?;

if q {
if Confirm::new("Launch block explorer?").prompt()? {
open::that(url)?;
}

Expand Down

0 comments on commit 738bcc6

Please sign in to comment.