Skip to content

Commit

Permalink
Make Filter Hashable and Equatable (#74)
Browse files Browse the repository at this point in the history
  • Loading branch information
joelklabo committed Aug 19, 2023
1 parent c02e10a commit 44a4f05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/NostrSDK/Filter.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import Foundation
/// A structure that describes a filter to subscribe to relays with.
///
/// > Note: [NIP-01 Specification](https://github.com/nostr-protocol/nips/blob/master/01.md#communication-between-clients-and-relays)
public struct Filter: Codable {
public struct Filter: Codable, Hashable, Equatable {
/// a list of event ids or prefixes
public let ids: [String]?

Expand Down

0 comments on commit 44a4f05

Please sign in to comment.