Transaction Resolver: transmit Redeem Link to calculateBalance

This commit is contained in:
Ulf Gebhardt 2022-03-31 12:32:35 +02:00
parent 04affc5a7d
commit a9ba92f67b
Signed by: ulfgebhardt
GPG Key ID: DA6B843E748679C9

View File

@ -57,7 +57,12 @@ export const executeTransaction = async (
// validate amount
const receivedCallDate = new Date()
const sendBalance = await calculateBalance(sender.id, amount.mul(-1), receivedCallDate)
const sendBalance = await calculateBalance(
sender.id,
amount.mul(-1),
receivedCallDate,
transactionLink,
)
if (!sendBalance) {
throw new Error("user hasn't enough GDD or amount is < 0")
}