fix zap
This commit is contained in:
parent
b950dd8bbd
commit
babce0d4da
1 changed files with 1 additions and 2 deletions
|
|
@ -575,8 +575,7 @@ export default class {
|
||||||
const e = this.parseTags("e", nostrEvent.tags)
|
const e = this.parseTags("e", nostrEvent.tags)
|
||||||
const relays = this.parseTags("relays", nostrEvent.tags, { required: true, multiples: true })
|
const relays = this.parseTags("relays", nostrEvent.tags, { required: true, multiples: true })
|
||||||
const amount = this.parseTags("amount", nostrEvent.tags)
|
const amount = this.parseTags("amount", nostrEvent.tags)
|
||||||
if (+amount !== amt) {
|
if (amount.length > 0 && +amount[0] !== amt) {
|
||||||
console.log({ amount, amt })
|
|
||||||
throw new Error("amount mismatch")
|
throw new Error("amount mismatch")
|
||||||
}
|
}
|
||||||
return { pub: p[0], eventId: e.length > 0 ? e[0] : "", relays, description: event }
|
return { pub: p[0], eventId: e.length > 0 ? e[0] : "", relays, description: event }
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue