pub fn extract_u32_from_bytes(bytes: &[u8]) -> Result<u32>Expand description
Extract u32 from 32-byte topic (value in last 4 bytes, big-endian).
In Ethereum event logs, indexed numeric parameters are stored as 32-byte values with the number right-aligned in big-endian format.
ยงErrors
Returns an error if the byte slice is shorter than 32 bytes.