Make to_electra not fallible

This commit is contained in:
dapplion
2024-06-17 18:18:44 +02:00
parent 1d0e3f4d30
commit 5acc0523df
5 changed files with 25 additions and 63 deletions

View File

@@ -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(),
}),
}
}