Skip to content

Commit

Permalink
refactor: remove utility functions setMetadata, textNote and recommen…
Browse files Browse the repository at this point in the history
…dServer
  • Loading branch information
ethicnology committed May 25, 2023
1 parent 3057122 commit a52e2ea
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 21 deletions.
1 change: 0 additions & 1 deletion lib/nostr.dart
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ export 'src/filter.dart';
export 'src/close.dart';
export 'src/message.dart';
export 'src/utils.dart';
export 'src/nips/nip_001.dart';
export 'src/nips/nip_002.dart';
export 'src/nips/nip_004.dart';
export 'src/nips/nip_005.dart';
Expand Down
19 changes: 0 additions & 19 deletions lib/src/nips/nip_001.dart

This file was deleted.

2 changes: 1 addition & 1 deletion lib/src/nips/nip_005.dart
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class Nip5 {
String name, String domain, List<String> relays, String privkey) {
if (isValidName(name) && isValidDomain(domain)) {
String content = generateContent(name, domain, relays);
return Nip1.setMetadata(content, privkey);
return Event.from(kind: 0, tags: [], content: content, privkey: privkey);
} else {
throw Exception("not a valid name or domain!");
}
Expand Down

0 comments on commit a52e2ea

Please sign in to comment.