This commit is contained in:
boufni95 2024-12-06 18:39:21 +00:00
parent 4415506ff6
commit da230dfb0e

View file

@ -576,6 +576,7 @@ export default class {
const relays = this.parseTags("relays", nostrEvent.tags, { required: true, multiples: true })
const amount = this.parseTags("amount", nostrEvent.tags)
if (+amount !== amt) {
console.log({ amount, amt })
throw new Error("amount mismatch")
}
return { pub: p[0], eventId: e.length > 0 ? e[0] : "", relays, description: event }