This commit is contained in:
boufni95 2024-12-06 19:08:31 +00:00
parent b950dd8bbd
commit babce0d4da

View file

@ -575,8 +575,7 @@ export default class {
const e = this.parseTags("e", nostrEvent.tags)
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 })
if (amount.length > 0 && +amount[0] !== amt) {
throw new Error("amount mismatch")
}
return { pub: p[0], eventId: e.length > 0 ? e[0] : "", relays, description: event }