Skip to content

Commit

Permalink
apply more clear logic to condition
Browse files Browse the repository at this point in the history
Signed-off-by: georgi-l95 <[email protected]>
  • Loading branch information
georgi-l95 committed Apr 19, 2024
1 parent 918a2f4 commit 2314c10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/relay/src/lib/eth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1500,7 +1500,7 @@ export class EthImpl implements Eth {
try {
return await sendRawTransaction();
} catch (e: unknown) {
if (!canRetry(e) || count >= maxAttempts) {
if (!canRetry(e) || count === maxAttempts - 1) {
throw e;
}
onError(e as SDKClientError);
Expand Down

0 comments on commit 2314c10

Please sign in to comment.