deb
This commit is contained in:
parent
4415506ff6
commit
da230dfb0e
1 changed files with 1 additions and 0 deletions
|
|
@ -576,6 +576,7 @@ export default class {
|
||||||
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 !== 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