extract_address_from_topic

Function extract_address_from_topic 

Source
pub fn extract_address_from_topic(
    log: &RpcLog,
    index: usize,
    description: &str,
) -> Result<Address>
Expand description

Extract address from topic at index.

In Ethereum event logs, indexed address parameters are stored as 32-byte values with the 20-byte address right-aligned (padded with zeros on the left).

ยงErrors

Returns an error if the topic is missing or the address extraction fails.