Fix clippy complaints

This commit is contained in:
Mark Mackey 2022-12-28 14:46:53 -06:00
parent c188cde034
commit 986ae4360a
No known key found for this signature in database
GPG Key ID: 269A603C167EBC6F
2 changed files with 2 additions and 4 deletions

View File

@ -4766,9 +4766,7 @@ impl<T: BeaconChainTypes> BeaconChain<T> {
.ok_or(Error::InvalidSlot(prepare_slot))? .ok_or(Error::InvalidSlot(prepare_slot))?
.as_secs(), .as_secs(),
pre_payload_attributes.prev_randao, pre_payload_attributes.prev_randao,
execution_layer execution_layer.get_suggested_fee_recipient(proposer).await,
.get_suggested_fee_recipient(proposer as u64)
.await,
withdrawals, withdrawals,
); );

View File

@ -109,7 +109,7 @@ fn tx_peek_blob_versioned_hashes<T: EthSpec>(
.get(next_version_hash_index..next_version_hash_index.safe_add(32)?) .get(next_version_hash_index..next_version_hash_index.safe_add(32)?)
.ok_or(BlockProcessingError::BlobVersionHashIndexOutOfBounds { .ok_or(BlockProcessingError::BlobVersionHashIndexOutOfBounds {
length: tx_len, length: tx_len,
index: (next_version_hash_index as usize).safe_add(32)?, index: (next_version_hash_index).safe_add(32)?,
})?; })?;
Ok(VersionedHash::from_slice(bytes)) Ok(VersionedHash::from_slice(bytes))
})) }))