Skip to content

Commit 2d71d89

Browse files
committed
Update README.md
1 parent a79330a commit 2d71d89

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ as a package dependency in Xcode.
1919
Add the following to the dependencies array in your `Package.swift`:
2020

2121
``` swift
22-
.package(url: "https://github.com/rust-nostr/nostr-sdk-swift.git", from: "0.0.1"),
22+
.package(url: "https://github.com/rust-nostr/nostr-sdk-swift.git", from: "0.0.2"),
2323
```
2424

2525
## 📄 Usage
@@ -35,11 +35,11 @@ client.connect();
3535

3636
let filter = Filter()
3737
.pubkey(pubkey: keys.publicKey())
38-
.since(timestamp: timestamp());
38+
.since(timestamp: Timestamp.now());
3939
let events = try client.getEventsOf(filters: [filter], timeout: nil);
4040
// handle events
4141

42-
let event = try EventBuilder.newTextNote(content: "Hello ffrom Rust Nostr SDK Swift bindings", tags: []).toEvent(keys: keys);
42+
let event = try EventBuilder.newTextNote(content: "Hello from Rust Nostr SDK Swift bindings", tags: []).toEvent(keys: keys);
4343
client.sendEvent(event: event);
4444
```
4545

0 commit comments

Comments
 (0)