Skip to content

Commit

Permalink
Apply formatting changes to solidity files
Browse files Browse the repository at this point in the history
  • Loading branch information
DrZoltanFazekas authored and github-actions[bot] committed Nov 13, 2024
1 parent 69fbde9 commit c47b42a
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions zilliqa/src/contracts/deposit.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit c47b42a

Please sign in to comment.