mirror of
https://github.com/sigp/lighthouse.git
synced 2026-04-19 22:08:30 +00:00
Make to_electra not fallible
This commit is contained in:
@@ -71,8 +71,8 @@ pub fn att_slashing(
|
||||
}
|
||||
// A slashing involving an electra attestation type must return an electra AttesterSlashing type
|
||||
(_, _) => AttesterSlashing::Electra(AttesterSlashingElectra {
|
||||
attestation_1: attestation_1.clone().to_electra().unwrap(),
|
||||
attestation_2: attestation_2.clone().to_electra().unwrap(),
|
||||
attestation_1: attestation_1.clone().to_electra(),
|
||||
attestation_2: attestation_2.clone().to_electra(),
|
||||
}),
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user