fix: save amount tag value as a string

This commit is contained in:
P. Reis 2025-03-21 10:07:34 -03:00
parent f9c4ec5835
commit d69854fa3c
2 changed files with 2 additions and 2 deletions

View file

@ -137,7 +137,7 @@ route.post('/mint/:quote_id', userMiddleware({ enc: 'nip44' }), async (c) => {
pubkey, pubkey,
JSON.stringify([ JSON.stringify([
['direction', 'in'], ['direction', 'in'],
['amount', amount], ['amount', String(amount)],
['e', unspentProofs.id, conf.relay, 'created'], ['e', unspentProofs.id, conf.relay, 'created'],
]), ]),
), ),

View file

@ -79,7 +79,7 @@ export const swapNutzapsMiddleware: MiddlewareHandler = async (c, next) => {
pubkey, pubkey,
JSON.stringify([ JSON.stringify([
['direction', 'in'], ['direction', 'in'],
['amount', amount], ['amount', String(amount)],
['e', unspentProofs.id, conf.relay, 'created'], ['e', unspentProofs.id, conf.relay, 'created'],
]), ]),
), ),