Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
MegaRedHand committed Dec 12, 2023
1 parent 1cec016 commit 728dcd6
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions lib/lambda_ethereum_consensus/state_transition/operations.ex
Original file line number Diff line number Diff line change
Expand Up @@ -662,9 +662,10 @@ defmodule LambdaEthereumConsensus.StateTransition.Operations do
slot = state.slot - data.slot

with {:ok, participation_flag_indices} <-
Accessors.get_attestation_participation_flag_indices(state, data, slot),
attesting_indices =
Accessors.get_committee_attesting_indices(committee, aggregation_bits) do
Accessors.get_attestation_participation_flag_indices(state, data, slot) do
attesting_indices =
Accessors.get_committee_attesting_indices(committee, aggregation_bits)

is_current_epoch = data.target.epoch == Accessors.get_current_epoch(state)
initial_epoch_participation = get_initial_epoch_participation(state, is_current_epoch)

Expand All @@ -684,8 +685,6 @@ defmodule LambdaEthereumConsensus.StateTransition.Operations do
|> Mutators.increase_balance(proposer_index, proposer_reward)
|> update_state(is_current_epoch, updated_epoch_participation)
|> then(&{:ok, &1})
else
{:error, reason} -> {:error, reason}
end
end

Expand Down

0 comments on commit 728dcd6

Please sign in to comment.