(code: &[u8])
| 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. |