diff --git a/components/brave_wallet/browser/internal/orchard_sync_state.cc b/components/brave_wallet/browser/internal/orchard_sync_state.cc index 0bc5610e2e71..516ed73aa709 100644 --- a/components/brave_wallet/browser/internal/orchard_sync_state.cc +++ b/components/brave_wallet/browser/internal/orchard_sync_state.cc @@ -87,10 +87,9 @@ OrchardSyncState::ApplyScanResults( std::vector nf_to_add; for (const auto& nf : block_scanner_results.found_spends) { - if (std::find_if(existing_notes.value().begin(), - existing_notes.value().end(), [&nf](const auto& v) { - return v.nullifier == nf.nullifier; - }) != existing_notes.value().end()) { + if (base::ranges::find_if(existing_notes.value(), [&nf](const auto& v) { + return v.nullifier == nf.nullifier; + }) != existing_notes.value().end()) { nf_to_add.push_back(nf); } }