Skip to content

Commit

Permalink
chore: simplify lastBatchIdxStart
Browse files Browse the repository at this point in the history
  • Loading branch information
agparadiso committed May 17, 2024
1 parent fec6e92 commit 528d283
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ func (a *onchainAllowlist) updateAllowedSendersInBatches(ctx context.Context, to
}

if updatedAllowedSenderCount > currentAllowedSenderCount {
lastBatchIdxStart := updatedAllowedSenderCount - (updatedAllowedSenderCount - currentAllowedSenderCount)
lastBatchIdxStart := currentAllowedSenderCount
lastBatchIdxEnd := updatedAllowedSenderCount - 1
currentAllowedSenderCount = updatedAllowedSenderCount

Expand Down

0 comments on commit 528d283

Please sign in to comment.