We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf3a4b3 commit 5c755edCopy full SHA for 5c755ed
src/api/routes/faucets.ts
@@ -409,7 +409,7 @@ export const FaucetRoutes: FastifyPluginAsync<
409
}
410
// Try with the next key. Wrap around the keys array if necessary.
411
keyIndex++;
412
- if (keyIndex > STX_FAUCET_KEYS.length) keyIndex = 0;
+ if (keyIndex >= STX_FAUCET_KEYS.length) keyIndex = 0;
413
logger.warn(
414
`StxFaucet transaction failed for sender ${senderAddress}, trying with next key: ${error}`
415
);
0 commit comments