(&self)
| 51 | /// failures are preserved as contract errors. |
| 52 | #[must_use] |
| 53 | pub fn is_missing_method(&self) -> bool { |
| 54 | let Self::Call { source, .. } = self else { |
| 55 | return false; |
| 56 | }; |
| 57 | |
| 58 | matches!( |
| 59 | source.as_ref(), |
| 60 | alloy_contract::Error::UnknownFunction(_) |
| 61 | | alloy_contract::Error::UnknownSelector(_) |
| 62 | | alloy_contract::Error::ZeroData(_, _) |
| 63 | ) || source.as_revert_data().is_some_and(|data| data.is_empty()) |
| 64 | } |
| 65 | |
| 66 | /// Returns whether a contract call reached EVM execution and reverted. |
| 67 | #[must_use] |
no test coverage detected