MCPcopy Create free account
hub / github.com/base/base / is_missing_method

Method is_missing_method

crates/proof/contracts/src/error.rs:53–64  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

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]

Callers 2

game_detailsMethod · 0.80

Calls 1

is_emptyMethod · 0.45

Tested by

no test coverage detected