Skip to content

Commit

Permalink
fix: should rotate through all providers in the list
Browse files Browse the repository at this point in the history
  • Loading branch information
phanshiyu committed Jul 5, 2024
1 parent ece5431 commit 1d86505
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ export async function queryContract<T extends Contract, R>(
} catch (error: any) {
if (
(error.code === errors.SERVER_ERROR || error.code === errors.TIMEOUT || error.code === errors.CALL_EXCEPTION) &&
tries < 3
tries < contracts.length
) {
tries++;
continue;
Expand Down

0 comments on commit 1d86505

Please sign in to comment.