message: Retry in case the indexer -> gateway transfer fails
diff: @@ -140,10 +140,10 @@ export default {
  )
  const signature = await client.channelProvider.signMessage(attestationHash)
  - let attemptTransfer = true;
  + let attemptTransfer = true
  while (attemptTransfer) {
  try {
  - const res = await client.resolveCondition({
  + await client.resolveCondition({
  conditionType: ConditionalTransferTypes.SignedTransfer,
  paymentId: eventData.paymentId,
  data: mockAttestation,
  @@ -154,9 +154,11 @@ export default {
  `Unlocked transfer ${eventData.paymentId} for (${formattedAmount} ETH)`,
  )
  - attemptTransfer = false;
  + attemptTransfer = false
  } catch (e) {
  - logger.error(`Caught error unlocking transfer, waiting 5 seconds and retrying...: ${e}`)
  + logger.error(
  + `Caught error unlocking transfer, waiting 5 seconds and retrying...: ${e}`,
  + )
  await delay(5000)
  }
  }
  @@ -168,6 +170,8 @@ export default {
  await delay(1000)
  + attemptTransfer = true
  + while (attemptTransfer) {
  try {
  logger.info(`Send ${formattedAmount} ETH back to ${eventData.sender}`)
  let response = await client.transfer({
  @@ -178,8 +182,13 @@ export default {
  logger.info(
  `${formattedAmount} ETH sent back to ${eventData.sender} via transfer ${response.paymentId}`,
  )
  + attemptTransfer = false
  } catch (e) {
  - logger.error(`Failed to send transfer back to ${eventData.sender}: ${e.message}`)
  + logger.error(
  + `Failed to send transfer back to ${eventData.sender}, waiting 5 seconds and retrying...: ${e}`,
  + )
  + await delay(5000)
  + }
  }
  },
  )
  