chore: make clippy happy (#13772)

This commit is contained in:
Federico Gimenez
2025-01-11 12:15:06 +01:00
committed by GitHub
parent ca30702f85
commit 5a23708eb0
19 changed files with 26 additions and 37 deletions

View File

@ -253,7 +253,7 @@ pub trait EthTransactions: LoadTransaction<Provider: BlockReaderIdExt> {
}
// Check if the sender is a contract
if self.get_code(sender, None).await?.len() > 0 {
if !self.get_code(sender, None).await?.is_empty() {
return Ok(None);
}