From c47b42ac8cc733557524faa128de2c8d840b5663 Mon Sep 17 00:00:00 2001 From: DrZoltanFazekas Date: Wed, 13 Nov 2024 16:39:21 +0000 Subject: [PATCH] Apply formatting changes to solidity files --- zilliqa/src/contracts/deposit.sol | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/zilliqa/src/contracts/deposit.sol b/zilliqa/src/contracts/deposit.sol index 7d112333f..4f7a2f7a8 100644 --- a/zilliqa/src/contracts/deposit.sol +++ b/zilliqa/src/contracts/deposit.sol @@ -314,13 +314,15 @@ contract Deposit { return committee().stakers[blsPubKey].balance; } - function getFutureStake(bytes calldata blsPubKey) public view returns (uint256) { + function getFutureStake( + bytes calldata blsPubKey + ) public view returns (uint256) { require(blsPubKey.length == 48); - uint64 epoch = latestComputedEpoch > currentEpoch() ? latestComputedEpoch : currentEpoch(); - Committee storage latestCommittee = _committee[ - epoch % 3 - ]; + uint64 epoch = latestComputedEpoch > currentEpoch() + ? latestComputedEpoch + : currentEpoch(); + Committee storage latestCommittee = _committee[epoch % 3]; // We don't need to check if `blsPubKey` is in `stakerKeys` here. If the `blsPubKey` is not a staker, the // balance will default to zero.