diff --git a/typescript/src/lib/utils/backoff.ts b/typescript/src/lib/utils/backoff.ts index c5509d841..06ebce0ef 100644 --- a/typescript/src/lib/utils/backoff.ts +++ b/typescript/src/lib/utils/backoff.ts @@ -90,7 +90,9 @@ export function backoffRetrier( retries: number, backoffStepMs: number = 1000, logger: ExecutionLoggerFn = console.debug, - errorMatcher: ErrorMatcherFn = retryAll + errorMatcher: ErrorMatcherFn = skipRetryWhenMatched([ + "Wallet with the given ID has not been registered", + ]) ): RetrierFn { return async (fn: () => Promise): Promise => { for (let attempt = 0; attempt < retries; attempt++) {