Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
joaoluisam committed Oct 6, 2024
1 parent 7c3a67e commit b4db005
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions integration-tests/actions/refund.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,12 @@ func (r *InsufficientFundTransferRetrier) Retry(ctx context.Context, logger zero
Msg(RetrySuccessfulMsg)
return nil
}

if strings.Contains(retryErr.Error(), InsufficientFundsErr) || strings.Contains(retryErr.Error(), TransactionUnderPriced) || strings.Contains(retryErr.Error(), FailedToWaitForTransaction) {
return r.Retry(ctx, logger, client, retryErr, payload, currentAttempt+1)
} else {
return retryErr
}

txErr = retryErr
}

if r.nextRetrier != nil {
Expand Down Expand Up @@ -151,9 +152,9 @@ func (r *GasTooLowTransferRetrier) Retry(ctx context.Context, logger zerolog.Log

if strings.Contains(retryErr.Error(), GasTooLowErr) {
return r.Retry(ctx, logger, client, retryErr, payload, currentAttempt+1)
} else {
return retryErr
}

txErr = retryErr
}

if r.nextRetrier != nil {
Expand Down Expand Up @@ -222,8 +223,6 @@ func (r *OvershotTransferRetrier) Retry(ctx context.Context, logger zerolog.Logg

if strings.Contains(retryErr.Error(), OvershotErr) {
return r.Retry(ctx, logger, client, retryErr, payload, currentAttempt+1)
} else {
return retryErr
}
}

Expand Down

0 comments on commit b4db005

Please sign in to comment.