Skip to content

Commit

Permalink
Deprecate AuthenticationEvent initializer in favor of AuthenticationE…
Browse files Browse the repository at this point in the history
…vent.Builder (#190)
  • Loading branch information
tyiu authored Oct 19, 2024
1 parent 4992fba commit 32182dc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Sources/NostrSDK/Events/AuthenticationEvent.swift
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ public final class AuthenticationEvent: NostrEvent, RelayProviding {
super.init(id: id, pubkey: pubkey, createdAt: createdAt, kind: kind, tags: tags, content: content, signature: signature)
}

@available(*, deprecated, message: "Deprecated in favor of AuthenticationEvent.Builder.")
init(content: String, tags: [Tag] = [], createdAt: Int64 = Int64(Date.now.timeIntervalSince1970), signedBy keypair: Keypair) throws {
try super.init(kind: .authentication, content: content, tags: tags, createdAt: createdAt, signedBy: keypair)
}
Expand Down

0 comments on commit 32182dc

Please sign in to comment.