Skip to content

Commit

Permalink
Change properties to public from internal, so that this public struct…
Browse files Browse the repository at this point in the history
… is actually useful. (#155)
  • Loading branch information
PavleKreator authored May 14, 2024
1 parent 429fcb9 commit 5dfd3ea
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Sources/NostrSDK/MetadataCoding.swift
Original file line number Diff line number Diff line change
Expand Up @@ -38,19 +38,19 @@ private enum TLVEncodingType: Int {
public struct Metadata {

/// A 32-byte hexadecimal public key.
var pubkey: String?
public var pubkey: String?

/// One or more relays on which the user or event can be found.
var relays: [String]?
public var relays: [String]?

/// A 32-byte hexadecimal event identifier.
var eventId: String?
public var eventId: String?

/// An identifier (d-tag) associated with an event, for use with parameterized replaceable events.
var identifier: String?
public var identifier: String?

/// The kind of the event, as an integer.
var kind: UInt32?
public var kind: UInt32?
}

/// A protocol containing a set of functions for encoding and decoding identifiers.
Expand Down

0 comments on commit 5dfd3ea

Please sign in to comment.