Merge pull request #646 from shocknet/fix-contraint

populate empty value
This commit is contained in:
boufni95 2024-03-05 19:00:54 +01:00 committed by GitHub
commit b7291b79f1

View file

@ -215,7 +215,8 @@ export default class {
}
} else {
await this.storage.userStorage.DecrementUserBalance(ctx.user_id, req.amoutSats + serviceFee)
this.addressPaidCb({ hash: crypto.randomBytes(32).toString("hex"), index: 0 }, req.address, req.amoutSats, true)
txId = crypto.randomBytes(32).toString("hex")
this.addressPaidCb({ hash: txId, index: 0 }, req.address, req.amoutSats, true)
}
if (isAppUserPayment && serviceFee > 0) {