mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-03 00:31:50 +00:00
Deneb review suggestions (3) (#4694)
* Fix typos * Avoid consuming/cloning blob * Tidy comments
This commit is contained in:
@@ -35,7 +35,7 @@ impl<E: EthSpec> Case for KZGBlobToKZGCommitment<E> {
|
||||
let kzg = get_kzg::<E::Kzg>()?;
|
||||
|
||||
let commitment = parse_blob::<E>(&self.input.blob).and_then(|blob| {
|
||||
blob_to_kzg_commitment::<E>(&kzg, blob).map_err(|e| {
|
||||
blob_to_kzg_commitment::<E>(&kzg, &blob).map_err(|e| {
|
||||
Error::InternalError(format!("Failed to compute kzg commitment: {:?}", e))
|
||||
})
|
||||
});
|
||||
|
||||
@@ -48,7 +48,7 @@ impl<E: EthSpec> Case for KZGComputeKZGProof<E> {
|
||||
|
||||
let kzg = get_kzg::<E::Kzg>()?;
|
||||
let proof = parse_input(&self.input).and_then(|(blob, z)| {
|
||||
compute_kzg_proof::<E>(&kzg, blob, z)
|
||||
compute_kzg_proof::<E>(&kzg, &blob, z)
|
||||
.map_err(|e| Error::InternalError(format!("Failed to compute kzg proof: {:?}", e)))
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user