mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 03:19:46 +00:00
fix: save amount tag value as a string
This commit is contained in:
parent
f9c4ec5835
commit
d69854fa3c
2 changed files with 2 additions and 2 deletions
|
|
@ -137,7 +137,7 @@ route.post('/mint/:quote_id', userMiddleware({ enc: 'nip44' }), async (c) => {
|
|||
pubkey,
|
||||
JSON.stringify([
|
||||
['direction', 'in'],
|
||||
['amount', amount],
|
||||
['amount', String(amount)],
|
||||
['e', unspentProofs.id, conf.relay, 'created'],
|
||||
]),
|
||||
),
|
||||
|
|
|
|||
|
|
@ -79,7 +79,7 @@ export const swapNutzapsMiddleware: MiddlewareHandler = async (c, next) => {
|
|||
pubkey,
|
||||
JSON.stringify([
|
||||
['direction', 'in'],
|
||||
['amount', amount],
|
||||
['amount', String(amount)],
|
||||
['e', unspentProofs.id, conf.relay, 'created'],
|
||||
]),
|
||||
),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue