chore: make clippy happy (#12594)

This commit is contained in:
Matthias Seitz
2024-11-16 06:04:39 +01:00
committed by GitHub
parent 2dc9a06321
commit fc97a0cbaf
24 changed files with 54 additions and 56 deletions

View File

@ -690,7 +690,7 @@ pub trait Call: LoadState<Evm: ConfigureEvm<Header = Header>> + SpawnBlocking {
request: TransactionRequest,
) -> Result<TxEnv, Self::Error> {
// Ensure that if versioned hashes are set, they're not empty
if request.blob_versioned_hashes.as_ref().map_or(false, |hashes| hashes.is_empty()) {
if request.blob_versioned_hashes.as_ref().is_some_and(|hashes| hashes.is_empty()) {
return Err(RpcInvalidTransactionError::BlobTransactionMissingBlobHashes.into_eth_err())
}