Skip to main content

detect_eip1167_clone

Function detect_eip1167_clone 

Source
pub fn detect_eip1167_clone(bytecode: &[u8]) -> Option<String>
Expand description

Detect an EIP-1167 minimal proxy from raw bytecode.

Returns the implementation address if the bytecode matches the EIP-1167 pattern. This requires NO RPC call — it works from eth_getCode output alone.

§Arguments

  • bytecode - raw bytecode bytes (not hex)