Update backend/src/graphql/resolver/util/processXComSendCoins.ts

Co-authored-by: einhornimmond <dario.rekowski@gmx.de>
This commit is contained in:
clauspeterhuebner 2023-09-20 12:24:00 +02:00 committed by GitHub
parent c3bc7182b7
commit ee8498daf3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -174,7 +174,7 @@ export async function processXComCommittingSendCoins(
logger.debug(`X-Com: ready for settleSendCoins with args=`, args)
const acknoleged = await client.settleSendCoins(args)
logger.debug(`X-Com: returnd from settleSendCoins:`, acknoleged)
if (acknoleged) {
if (acknowledge) {
// settle the pending transaction on receiver-side was successfull, so now settle the sender side
try {
await settlePendingSenderTransaction(senderCom, sender, pendingTx)