Skip to content

Commit

Permalink
pass in single attestation as ref to subnetid calculation method
Browse files Browse the repository at this point in the history
  • Loading branch information
eserilev committed Jan 15, 2025
1 parent b9b9b99 commit 4f2182e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion beacon_node/beacon_chain/src/test_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1280,7 +1280,7 @@ where
};

let subnet_id = SubnetId::compute_subnet_for_single_attestation::<E>(
attestation.clone(),
&attestation,
committee_count,
&self.chain.spec,
)
Expand Down
2 changes: 1 addition & 1 deletion consensus/types/src/subnet_id.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ impl SubnetId {
/// Compute the subnet for an attestation where each slot in the
/// attestation epoch contains `committee_count_per_slot` committees.
pub fn compute_subnet_for_single_attestation<E: EthSpec>(
attestation: SingleAttestation,
attestation: &SingleAttestation,
committee_count_per_slot: u64,
spec: &ChainSpec,
) -> Result<SubnetId, ArithError> {
Expand Down

0 comments on commit 4f2182e

Please sign in to comment.