Skip to content

Commit

Permalink
fix empty logs
Browse files Browse the repository at this point in the history
  • Loading branch information
kolima committed Jun 14, 2024
1 parent 12bd99f commit 07cbb9d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions projects/myso-v2/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ const getBlitzMatchBalances = async (api, contracts, fromBlock) => {
fromBlock,
});

if (!logs.length) return;

const CHUNK_SIZE = 40;

function chunkArray(array, chunkSize) {
Expand Down

0 comments on commit 07cbb9d

Please sign in to comment.