NIP-94 file headers (#488)

* feat: NIP-94 file headers

* Merge NIP-81 tags

* disable embedding nip94 for now

* merge error

* disable broken test

* bugfixes

* bug: validation failure
This commit is contained in:
2023-04-17 11:57:13 +01:00
committed by GitHub
parent c294f5f0bd
commit c59dda1e49
12 changed files with 134 additions and 25 deletions

View File

@ -74,10 +74,10 @@ export class EventBuilder {
}
#validate() {
if (!this.#kind) {
if (this.#kind === undefined) {
throw new Error("Kind must be set");
}
if (!this.#pubkey) {
if (this.#pubkey === undefined) {
throw new Error("Pubkey must be set");
}
}