Skip to content

Commit

Permalink
fix: null receipt on block error logging
Browse files Browse the repository at this point in the history
  • Loading branch information
py-zoid committed Sep 4, 2024
1 parent 042d002 commit 39ab847
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/block_getters/block_getter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export class BlockGetter extends BlockFormatter implements IBlockGetter {
transactions
);
} catch (error) {
if (errorCount >= this.maxRetries) {
if (errorCount > this.maxRetries) {
Logger.info({
location: "block_getter",
function: "getBlockWithTransactionReceipts",
Expand Down Expand Up @@ -132,7 +132,7 @@ export class BlockGetter extends BlockFormatter implements IBlockGetter {

return this.formatTransactionReceipt(transactionReceipt);
} catch (error) {
if (errorCount >= this.maxRetries) {
if (errorCount > this.maxRetries) {
Logger.info({
location: "block_getter",
function: "getTransactionReceipt",
Expand Down

0 comments on commit 39ab847

Please sign in to comment.