Skip to content

Commit

Permalink
Add missing is_none checks
Browse files Browse the repository at this point in the history
  • Loading branch information
thibault-martinez committed Nov 5, 2023
1 parent dfed1c2 commit 61178ab
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion sdk/src/wallet/core/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,12 @@ where
}

// If ids are provided, only return them and no other outputs.
if filter.account_ids.is_none() && filter.foundry_ids.is_none() && filter.nft_ids.is_none() {
if filter.account_ids.is_none()
&& filter.anchor_ids.is_none()
&& filter.foundry_ids.is_none()
&& filter.nft_ids.is_none()
&& filter.delegation_ids.is_none()
{
filtered_outputs.push(output.clone());
}
}
Expand Down

0 comments on commit 61178ab

Please sign in to comment.