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

Method can_replace_code

crates/execution/eip8130/src/apply.rs:250–252  ·  view source on GitHub ↗
(code: &[u8])

Source from the content-addressed store, hash-verified

248 /// the code to have the canonical 23-byte indicator length.
249 #[must_use]
250 pub fn can_replace_code(code: &[u8]) -> bool {
251 code.is_empty() || code.starts_with(&Eip8130Constants::DELEGATION_INDICATOR_PREFIX)
252 }
253
254 /// Installs or clears this delegation after verifying the account's current
255 /// code is delegatable.

Callers

nothing calls this directly

Calls 1

is_emptyMethod · 0.45

Tested by

no test coverage detected