Skip to content

Commit

Permalink
simplification
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanBratanov committed Mar 25, 2024
1 parent d98d5ac commit d10fbb1
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -229,11 +229,7 @@ public synchronized SszList<Deposit> getDeposits(
// EIP-6110
final UInt64 eth1DepositIndexLimit =
eth1DepositCount.min(stateElectra.getDepositReceiptsStartIndex());
if (eth1DepositIndex.isLessThan(eth1DepositIndexLimit)) {
return eth1DepositIndexLimit.minus(eth1DepositIndex).min(maxDeposits);
} else {
return UInt64.ZERO;
}
return eth1DepositIndexLimit.minusMinZero(eth1DepositIndex).min(maxDeposits);
})
.orElseGet(
() -> {
Expand Down

0 comments on commit d10fbb1

Please sign in to comment.