Skip to content

Commit

Permalink
update committee offset
Browse files Browse the repository at this point in the history
  • Loading branch information
realbigsean committed May 11, 2024
1 parent 3ab1eb7 commit bf167c3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ pub mod attesting_indices_electra {

let committee_indices = get_committee_indices::<E>(committee_bits);

let committee_offset = 0;
let mut committee_offset = 0;

let committees_map: HashMap<u64, &BeaconCommittee> = committees
.iter()
Expand Down Expand Up @@ -138,7 +138,7 @@ pub mod attesting_indices_electra {

output.extend(committee_attesters);

committee_offset.safe_add(beacon_committee.committee.len())?;
committee_offset.safe_add_assign(beacon_committee.committee.len())?;
} else {
return Err(Error::NoCommitteeFound(index));
}
Expand Down

0 comments on commit bf167c3

Please sign in to comment.